home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr23 / commo642.zip / MACRO.DOC < prev    next >
Text File  |  1995-03-18  |  151KB  |  5,126 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.     {COMMO} (tm)
  7.  
  8.                    "A New Standard in Telecommunications"
  9.  
  10.  
  11.         by Fred P. Brucker
  12.  
  13.  
  14.  
  15.  
  16.  
  17.             Part II
  18.               Macro Programming Guide
  19.  
  20.  
  21.             Release 6.42
  22.               March 18, 1995
  23.  
  24.  
  25.  
  26.  
  27.  
  28.        (C)Copyright 1989-1995  Fred P. Brucker  All Rights Reserved 
  29.  
  30.  
  31.  
  32.  
  33. The {COMMO} program and associated on-disk documentation are the property
  34. of Fred P. Brucker (the "author") and may not be sold without permission. 
  35. The Shareware version may be distributed, unaltered and as a unit, via
  36. Electronic Bulletin Board Systems.
  37.  
  38. SHAREWARE DISTRIBUTORS and clubs, please see the file VENDOR.DOC for
  39. distribution guidelines.
  40.  
  41.  
  42. THE AUTHOR OF THIS PROGRAM DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR
  43. IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  44. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH REGARD TO THE
  45. SOFTWARE, THE ACCOMPANYING WRITTEN MATERIALS AND THE DISKETTES.  IN NO
  46. EVENT SHALL THE AUTHOR BE LIABLE TO YOU FOR ANY CONSEQUENTIAL, SPECIAL,
  47. INCIDENTAL OR INDIRECT DAMAGES OF ANY KIND ARISING OUT OF THE USE OF THE
  48. SOFTWARE, EVEN IF THE AUTHOR HAS BEEN SPECIFICALLY ADVISED OF THE
  49. POSSIBILITY OF SUCH DAMAGES.  IN NO EVENT WILL THE AUTHOR'S LIABILITY
  50. EXCEED THE ACTUAL PRICE PAID FOR THE LICENSE TO USE THE SOFTWARE.
  51.  
  52. YOUR USE OF THIS PROGRAM CONSTITUTES YOUR ACCEPTANCE OF THESE TERMS.
  53.  
  54.  
  55. {COMMO} is a trademark of Fred P. Brucker.  All other trademarks and
  56. registered trademarks referenced in this document are the property of their
  57. respective owners.
  58.  
  59.  
  60.  
  61.                      ================================
  62.                      {COMMO} Registration Information
  63.                      ================================
  64.  
  65.   {COMMO} is a "SHAREWARE" product.  You are entitled to evaluate it for
  66.   30 days.  If it suits your needs and you would like to continue using
  67.   it, then you must pay the licensing fee.  Please use the REGISTRATION
  68.   FORM on the next page.
  69.  
  70.   When you REGISTER you will be licensed to use all future SHAREWARE
  71.   releases of {COMMO}.  You will never have to pay an "update" charge.
  72.   Registration allows you to eliminate delay screens and to enable extra
  73.   features (see !!!INFO.DOC for list).  Registered users will receive
  74.   priority support on Bulletin Boards and CompuServe (see !!!INFO.DOC).
  75.  
  76.   Call or write for pricing information on MULTI-USER (SITE) and
  77.   DISTRIBUTION licenses.  Discounts are given on quantities of 10 or more.
  78.  
  79.   All prices shown are US DOLLARS.  Please remit US FUNDS on US BANK only.
  80.   NET 30 TERMS will be accepted on purchase orders totalling $100.00 or
  81.   more.
  82.  
  83.   The PRINTED MANUAL is 7 x 8.5 (inches) in size and includes an index.
  84.   The DISKETTE has the latest {COMMO} release plus the latest version of
  85.   the Enhanced MOSTHOST host macro.
  86.  
  87.   For orders, inquiries and support for registered users, call MON-SAT,
  88.   9am-5pm, EASTERN time.  If you get my answering machine, please try
  89.   again later (I cannot return long distance calls).
  90.  
  91.   To register by E-mail on CompuServe or Internet, upload the completed
  92.   Registration Form as a message (text or binary).
  93.  
  94.      MAILING ADDRESS:    Fred P. Brucker
  95.                          P.O. Box 141537
  96.                          Columbus, OH 43214
  97.  
  98.      VOICE TELEPHONE:    (614) 326-1309
  99.      COMPUSERVE:         71021,356
  100.      INTERNET:           71021.356@compuserve.com
  101.  
  102.   PAYMENT OPTIONS:
  103.  
  104.   1) CHECK or MONEY ORDER:  make payable to FRED P. BRUCKER.
  105.  
  106.   2) CREDIT CARD:  fill in the credit card information at the bottom of
  107.      the Registration Form (next page).  Credit card orders may be mailed,
  108.      phoned or E-mailed via CompuServe.
  109.  
  110. --------------------------------------------------------------------------
  111.  
  112.  
  113.  
  114.                  {COMMO} 6.42 SINGLE USER REGISTRATION FORM
  115.  
  116.   Name     _______________________________________________________________
  117.  
  118.   Company name (if company address)   ____________________________________
  119.  
  120.   Address  _______________________________________________________________
  121.  
  122.            _______________________________________________________________
  123.  
  124.            _______________________________________________________________
  125.  
  126.              * All prices include shipping and handling *            Number
  127.                                                                     of Copies
  128.   {COMMO} single user license with PRINTED MANUAL and DISKETTE:
  129.          Price in USA/Canada/Mexico ....................... $ 53.00   ____
  130.          OHIO residents (includes sales tax) ..............   56.05   ____
  131.          All other countries ..............................   60.00   ____
  132.  
  133.   {COMMO} single user license, with DISKETTE:
  134.          Price in USA/Canada/Mexico ....................... $ 40.00   ____
  135.          OHIO residents (includes sales tax) ..............   42.30   ____
  136.          All other countries ..............................   42.00   ____
  137.  
  138.   Special price for BBS sysops and students, with DISKETTE:
  139.          Price in USA/Canada/Mexico ....................... $ 30.00   ____
  140.          OHIO residents (includes sales tax) ..............   31.73   ____
  141.          All other countries ..............................   32.00   ____
  142.      Sysops: BBS name and phone number ____________________
  143.      Students: name of school _____________________________
  144.  
  145.   >>>>>>>>>>>>>>>>>>  Specify if OTHER than 3.5" HD diskette: _______
  146.  
  147.  
  148.                                       Enter total AMOUNT:   $ ____________
  149.  
  150.   Payment method:  Check__  Money order__  Visa__  MasterCard__
  151.                    Carte Blanche__  Diners Club__  JCB__   PO__
  152.  
  153.  
  154.      INFORMATION FOR CREDIT CARD PURCHASES ONLY:
  155.  
  156.      Card No. ________  ________  ________  ________  Expires ____/____
  157.                                                                mo.  yr.
  158.      Cardholder signature _____________________________________________
  159.  
  160.      Cardholder name __________________________________________________
  161.  
  162.      Daytime telephone  (_____) _____ _______
  163.  
  164. --------------------------------------------------------------------------
  165.  
  166.  
  167.  
  168.  
  169.   Answers to the following questions will help me serve you better in the
  170.   future:
  171.  
  172.   How did you obtain {COMMO}?  (If BBS, please give name and phone number)
  173.  
  174.   ________________________________________________________________________
  175.  
  176.   In general terms, what do you use {COMMO} for?
  177.  
  178.   ________________________________________________________________________
  179.  
  180.   ________________________________________________________________________
  181.  
  182.   What type of computer and modem do you use?
  183.  
  184.   ________________________________________________________________________
  185.  
  186.   ________________________________________________________________________
  187.  
  188.  
  189.   Comments / Questions ___________________________________________________
  190.  
  191.   ________________________________________________________________________
  192.  
  193.   ________________________________________________________________________
  194.  
  195.   ________________________________________________________________________
  196.  
  197.   ________________________________________________________________________
  198.  
  199.  
  200.   Thank you, and I hope you enjoy {COMMO}.
  201.  
  202.  
  203.  
  204.                                     -6-
  205.  
  206. ========
  207. Contents
  208. ========
  209.  
  210.  
  211. Programming {COMMO} Macros  . . . . . . . . . . . . . . . . . . . . . .   9
  212.      Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   9
  213.      Macro Structure  . . . . . . . . . . . . . . . . . . . . . . . . .   9
  214.      Macro Functions  . . . . . . . . . . . . . . . . . . . . . . . . .  10
  215.      Macro Labels . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  216.      Macro Variables  . . . . . . . . . . . . . . . . . . . . . . . . .  13
  217.      How to Use Variables . . . . . . . . . . . . . . . . . . . . . . .  14
  218.      Reserved Variables . . . . . . . . . . . . . . . . . . . . . . . .  15
  219.      Executing Macros . . . . . . . . . . . . . . . . . . . . . . . . .  16
  220.      Additional Macro Execution Rules . . . . . . . . . . . . . . . . .  16
  221.      Cancelling a Macro . . . . . . . . . . . . . . . . . . . . . . . .  17
  222.      A Macro Example in Detail  . . . . . . . . . . . . . . . . . . . .  17
  223.  
  224. Description of Functions (Alphabetical) . . . . . . . . . . . . . . . .  20
  225.      ALARm  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  226.      ASCIiup  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  227.      AUTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  228.      BEEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  229.      BREAk  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  230.      CALL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  231.      CALOok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  232.      CAPMode  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  233.      CAPTure  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  234.      CHATmode . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  235.      CLEAr  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  236.      COMPare  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  237.      CURSor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  28
  238.      DECRement  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  28
  239.      DIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  240.           Marking Numbers for Dialing . . . . . . . . . . . . . . . . .  30
  241.           Automatic Resumption of Dialing . . . . . . . . . . . . . . .  31
  242.           Testing Success and Failure Results . . . . . . . . . . . . .  31
  243.           Handling Incoming Calls . . . . . . . . . . . . . . . . . . .  32
  244.      DISPlay  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  245.      DIVIde . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  33
  246.      DOORway  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  247.      DPARms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  248.      EDIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  35
  249.      ELAPse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  250.      EXECute  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  251.           Using the Direct Switch: EXEC-D . . . . . . . . . . . . . . .  38
  252.           Using the Swap to Disk Switch: EXEC-S . . . . . . . . . . . .  38
  253.           EXECute Preview Mode  . . . . . . . . . . . . . . . . . . . .  39
  254.      EXIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  255.      FILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  256.      FONFile  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  41
  257.      GETString  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  42
  258.      GOLOok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  259.  
  260.  
  261.  
  262.                                     -7-
  263.  
  264.      GOTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  265.      HANGup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  266.      HELP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
  267.      HOLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
  268.      IFCArrier  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
  269.      IFCOndition  . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  270.      IFERrorlevel . . . . . . . . . . . . . . . . . . . . . . . . . . .  49
  271.      IFEXist  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  50
  272.      INCRement  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  273.      INFOrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  51
  274.      INITmodem  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  52
  275.      INPUt  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  52
  276.      INSTring . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  277.      KEYStuff . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  54
  278.      LENGth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  54
  279.      LIGHts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  54
  280.      LOCAlecho  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  55
  281.      LOOKfor  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  55
  282.      MACRo  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  57
  283.      MARK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  58
  284.      MENU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  59
  285.      MULTiply . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  61
  286.      NOCArrier  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62
  287.      NOOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62
  288.      OFFLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  62
  289.      PARMs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  63
  290.      PASSword . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  63
  291.      PAUSe  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  64
  292.      POPStack . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  64
  293.      PRINtlog . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  65
  294.      PUSHstack  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  65
  295.      RCLOse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  66
  296.      READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  66
  297.      RETUrn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67
  298.      ROPEn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  67
  299.      RTRAn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  68
  300.      RXMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  69
  301.      RYMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  69
  302.      RZMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  71
  303.      SCREen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  72
  304.      SCROllback . . . . . . . . . . . . . . . . . . . . . . . . . . . .  73
  305.      SEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  73
  306.      SETDial  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  74
  307.      SETEsc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  74
  308.      SETGet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  75
  309.      SETLook  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  77
  310.      SETR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  78
  311.      SETUp  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  79
  312.      SETVariable  . . . . . . . . . . . . . . . . . . . . . . . . . . .  79
  313.      SFICtrl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  80
  314.      SHELl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  81
  315.      SIGNal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  81
  316.      SOUNd  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  82
  317.  
  318.  
  319.  
  320.                                     -8-
  321.  
  322.      SPDCtrl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  82
  323.      SPOCtrl  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  83
  324.      SSLOok . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  83
  325.      STATusline . . . . . . . . . . . . . . . . . . . . . . . . . . . .  84
  326.      STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  85
  327.      STRAn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  85
  328.      SUBString  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  86
  329.      SXMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  87
  330.      SYMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  87
  331.      SZMOdem  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  88
  332.           File Specifications . . . . . . . . . . . . . . . . . . . . .  89
  333.      TOGGles  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  90
  334.      UNLOad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  90
  335.      UNMArk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  90
  336.      VIDEo  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  91
  337.      VTCUr  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  92
  338.      VTPAd  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  92
  339.      WCLOse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  93
  340.      WINDow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  93
  341.      WOPEn  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  93
  342.      WRITe  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  94
  343.  
  344. For APPENDICES see Part I, COMMO.DOC. . . . . . . . . . . . . . . . . .  96
  345.  
  346.  
  347.  
  348.                                     -9-
  349.  
  350. ==========  Programming {COMMO} Macros
  351.  
  352. IMPORTANT!  Please read the next few pages before you attempt to write any
  353. macros!  The rules for writing {COMMO} macros are few in number, but must
  354. be followed carefully.
  355.  
  356. Examples of more complex macro programming are given in the sample Macro
  357. File COMMO.MAC, in the supplied file SAMPLES.MAC and in the Host Mode and
  358. Guide macros.  A macro from SAMPLES.MAC is discussed in detail at the end
  359. of this section.
  360.  
  361. The following pages assume familiarity with {COMMO}'s key commands and with
  362. other features of the program.  Since many macro functions have
  363. corresponding key commands, duplicate explanations will not be given here. 
  364. Refer to the description of the key command in Part I (COMMO.DOC).
  365.  
  366.  
  367. -----=====  Overview
  368.  
  369. {COMMO}'s Macro Files may contain any number of macros and are limited in
  370. size to 64k bytes each (total of 128k if auxiliary Macro File is used).
  371.  
  372. Macros are "interpreted," which implies the following:
  373.  
  374.      (1)  Macros are not processed in any way until execution begins. 
  375.           Rules for starting macros are listed under "Executing Macros"
  376.           later in this section.
  377.  
  378.      (2)  Only macros within the currently loaded Macro File(s) are
  379.           available for immediate use.
  380.  
  381.      (3)  Macros added or modified with the Internal Editor are ready for
  382.           execution without additional processing.
  383.  
  384. COMMO.MAC is the resident Macro File.  An auxiliary Macro File may be
  385. loaded (or replaced) at any time using the CALL and GOTO functions (or
  386. manually within the Macro File window).  See the individual descriptions of
  387. the CALL, GOTO and RETUrn functions for details.  See also Appendix K for
  388. more information on Macro Files.
  389.  
  390. Macro Files may be compiled to increase speed, to reduce size and to
  391. improve security of source code.  See "[Alt-M]  Macro File" in Part I
  392. (COMMO.DOC) for details.
  393.  
  394.  
  395. -----=====  Macro Structure
  396.  
  397. Macros consist of a series of items enclosed in curly braces.  Multiple
  398. items may be placed on the same line, but a single item may not be split
  399. between lines.  Lines may be up to 255 characters in length and all text
  400. outside the curly braces is commentary and is ignored when macros are
  401. executing.
  402.  
  403.  
  404.  
  405.                                     -10-
  406.  
  407. There are two types of items: "functions" and "labels."
  408.  
  409.      Functions are action items.  Some are equivalent to {COMMO} key
  410.      commands, such as DIAL, while others are unique to the macro language,
  411.      such as SETVariable.
  412.  
  413.      Labels are macro entry points and may be placed anywhere within the
  414.      Macro File.
  415.  
  416.  
  417. -----=====  Macro Functions
  418.  
  419. Each macro function is described in detail later in this document.  See
  420. also Appendix J "Macro Functions Listed by Class."
  421.  
  422.  
  423. The general form of any macro function is:
  424.  
  425.      {name-switches arg1,arg2,...,argn}
  426.  
  427.           name
  428.                The function name describes the action to be performed and
  429.                consists of four or more characters. Only the first four are
  430.                significant and case is ignored.
  431.  
  432.           switches
  433.                These are used to alter the operation of a function.  Each
  434.                switch is a single letter and may be followed by a numeric
  435.                value, usually "1" or "0" to indicate "yes" or "no"
  436.                respectively.
  437.  
  438.                Switches have default interpretations when the numeric value
  439.                is omitted, or when the switch is not present.
  440.  
  441.                Switches must be separated from the name with a hyphen (no
  442.                intervening spaces).  They may be upper or lower case.
  443.  
  444.                See individual function descriptions for details (note that
  445.                only certain functions have switches).
  446.  
  447.           args
  448.                A SINGLE SPACE separates the arguments from the function
  449.                name and switches.
  450.  
  451.                Individual arguments are separated with commas and may
  452.                contain no extraneous spaces (all spaces are significant).
  453.  
  454. NOTE:  Curly braces may be represented within macro functions by using ^(
  455. for { and ^) for }.
  456.  
  457.  
  458.  
  459.                                     -11-
  460.  
  461. Examples:
  462.  
  463.      {send Hi, how are you?}
  464.  
  465.           This function sends the string "Hi, how are you?" to the modem. 
  466.           SEND has only one argument -- the string to send out.  Since the
  467.           string is the last argument, it may contain commas and spaces. 
  468.           Quotes are not used to define strings.
  469.  
  470.      {ifcon-LE label1,label2}
  471.  
  472.           The IFCOndition function tests for conditions set by other
  473.           functions, such as COMPare.  Here two switches are present,
  474.           telling {COMMO} to test for less than or equal:
  475.  
  476.                L    Test for "less than."
  477.                E    Test for "equal."
  478.  
  479.           The two arguments are labels to GOTO depending on the conditions.
  480.  
  481.           Notice that "name-switches" may be written in a number of
  482.           different ways:
  483.  
  484.                ifco-LE  ifcondition-EL  ifcond-LE
  485.  
  486.      {asci-S0E1 path\filename}
  487.  
  488.           The ASCII Upload function will send the file indicated by
  489.           "path\filename."  The switches override current settings and tell
  490.           {COMMO}:
  491.  
  492.                S0   Do NOT strip linefeeds.
  493.                E1   DO expand blank lines (may also be written "E").
  494.  
  495.      {sound}   {sound yes}
  496.  
  497.           The first function will TOGGLE Master Sound ON/OFF (since there
  498.           is no argument).  The second will turn the sound ON.
  499.  
  500.  
  501. One very important function is the STOP function.  It is used to terminate
  502. macro execution and may appear in either its long form or short form:
  503.  
  504.      ... {stop}     long form
  505.      ... {}         short form
  506.  
  507. Macro execution continues until a STOP function is executed.  Be sure to
  508. use one or execution will continue into the next macro in the Macro File!
  509.  
  510.  
  511.  
  512.                                     -12-
  513.  
  514. -----=====  Macro Labels
  515.  
  516. Labels are identifiers consisting of one or more characters.  When a label
  517. is defined, it must be preceded by a colon.  References to labels, such as
  518. {goto label}, do not require the colon.
  519.  
  520. IMPORTANT!  {COMMO} always searches for labels from the beginning of the
  521. auxiliary Macro File (if one is loaded), then from the beginning of the
  522. resident Macro File.  This means that if a label is duplicated within the
  523. files, the first occurrence will be used.
  524.  
  525. Only the first eight characters in a label are significant.  Case is
  526. ignored.  All characters above ASCII 27 are allowed in labels except the
  527. following:
  528.  
  529.      colon           ":"
  530.      space           " "
  531.      comma           ","
  532.      slash           "/"
  533.      curly braces    "{" or "}"
  534.  
  535. Examples:
  536.  
  537.      {:mailrun} {call login} ...
  538.  
  539.      {:start-here} {:another.entry} {send Begin now!} ...
  540.  
  541.  
  542. A number of three character labels are reserved and are called "key-
  543. labels."  When the corresponding key is pressed from the Terminal Screen,
  544. {COMMO} will look for the key-label in the current Macro File.  If the key-
  545. label is found, macro execution will begin at that location.
  546.  
  547. Any default key assignment may be overridden using a key-label.  For
  548. example, pressing Alt-D normally enters the Dialing Directory.  But suppose
  549. this line is in the Macro File:
  550.  
  551.      {:ald} {clear} {}
  552.  
  553. Now pressing Alt-D will clear the screen.
  554.  
  555. There are predefined key-labels and user-defined key-labels.  See Appendix
  556. H "{COMMO} Macro Key-labels" for complete details.
  557.  
  558.  
  559.  
  560.                                     -13-
  561.  
  562. -----=====  Macro Variables
  563.  
  564. {COMMO} maintains a String Variable Space in which variables appear in the
  565. form:
  566.  
  567.      name,string
  568.  
  569.           name
  570.                An identifier consisting of one or more characters of which
  571.                only the first eight are significant.  Case is ignored.  The
  572.                following are the ONLY valid characters that may be used in
  573.                a variable name:
  574.  
  575.                     "A" through "Z"
  576.                     "a" through "z"
  577.                     "0" through "9"
  578.                     "_" underscore
  579.  
  580.                All other characters will terminate the name.
  581.  
  582.           string
  583.                A text string.  The string must not contain ASCII 0, 10 or
  584.                13 (null/cr/lf).  If a string is set to null (0 characters),
  585.                it is deleted from variable space.  Note the difference
  586.                between the null character (ASCII 0) and a null string (0
  587.                characters).
  588.  
  589.                NOTE:  Any variable not defined is considered to be null.
  590.  
  591.                Strings consisting of only the digits 0-9 and representing a
  592.                decimal number from 0 to 4,294,967,295 (2^32-1) are also
  593.                numeric variables.  There is no other difference between
  594.                string and numeric variables.
  595.  
  596.                The maximum length of strings is 240 characters.
  597.  
  598. The String Variable Space may be viewed from within the Macro File window
  599. (see Online Help).  The amount of unused string space will also be shown.
  600.  
  601. Once a variable is defined, it remains in String Variable Space until it is
  602. redefined or deleted (set to null).  Therefore variables should be deleted
  603. or re-used to prevent String Variable Space from becoming full.
  604.  
  605. The default size of String Variable Space is 3072 bytes, but it may be
  606. adjusted with the "/v" command line switch at program startup.  The valid
  607. range is from 512 bytes to 65535 bytes.  See also "Command Line Options" in
  608. Part I (COMMO.DOC).
  609.  
  610.  
  611.  
  612.                                     -14-
  613.  
  614. ----------  How to Use Variables
  615.  
  616. {COMMO} variables may be set (or "defined") in numerous ways:
  617.  
  618.      1)  With the SET item in the Setup File.
  619.      2)  By various macro functions.
  620.      3)  By variable strings at the end of a Dialing Directory entry.
  621.      4)  During execution of certain program operations.
  622.  
  623. Variables are used (or "referenced") in macro function arguments and in the
  624. telephone number field of the Dialing Directory.  See also "[Alt-D] 
  625. Dialing Directory" in Part I (COMMO.DOC).
  626.  
  627. When a variable name appears, the string assigned to the name is
  628. substituted for the name.  If the variable is null, then the name is
  629. replaced with 0 characters.  {COMMO} will expand the variables in a macro
  630. function before executing it.
  631.  
  632. In order to distinguish variable names from other parts of function
  633. arguments, they must be preceded with a percent sign "%" (use two
  634. consecutive percent signs if a percent sign is needed in the data).
  635.  
  636. The end of the variable name is indicated with another "%" or with the
  637. first character that is not allowed in a name (see list of characters
  638. above).
  639.  
  640.  
  641. A variable definition example:
  642.  
  643.      {setvar animal,Elephant} or {setvar %animal,Elephant}
  644.  
  645.           Notice that the "%" is not required (but is permitted) when the
  646.           variable name is the first argument of a function that defines,
  647.           modifies or tests the value of a variable.  Other such functions
  648.           include INPUt, GETString, INCRement, DECRement, COMPare,
  649.           SUBString, INSTring, READ.
  650.  
  651.           If the variable name itself needs to be a variable, then use two
  652.           percent signs:
  653.  
  654.                {setv %%animal,Elephant}
  655.  
  656.  
  657. Variable usage examples:
  658.  
  659.      {setvar animal,Elephant}
  660.      {send %animal}
  661.           Sends "Elephant" to the modem.
  662.      {send animal}
  663.           Sends "animal".
  664.      {send %animal%s are large animals}
  665.           Sends "Elephants are large animals".  Note that the trailing "%"
  666.           is required here.
  667.  
  668.  
  669.  
  670.                                     -15-
  671.  
  672.  
  673.      {setvar animal,Elephant}
  674.      {setv creature,animal}
  675.      {send creature}
  676.           Sends "creature". 
  677.      {send %creature}
  678.           Sends "animal". 
  679.      {setv %%creature,Giraffe}
  680.      {send %animal}
  681.           Sends "Giraffe".
  682.  
  683.  
  684. IMPORTANT!  Variables may NOT be substituted within the function name or
  685. switches.  They may be substituted anywhere else, even for the commas
  686. separating arguments.
  687.  
  688. See "SETVariable" for additional examples and more ways to set variables.
  689.  
  690.  
  691. ----------  Reserved Variables
  692.  
  693. Certain variables have fixed names so that {COMMO} can find them whenever
  694. they are needed.  The names of these variables begin with an underscore
  695. character "_".  There are two types of reserved variables: "user-defined"
  696. and "built-in" (see Appendix I "List of Reserved Variables" for a complete
  697. list).
  698.  
  699. USER-DEFINED reserved variables are defined in the same way that you define
  700. ordinary variables -- in the Setup File using SET, or in a macro using
  701. functions such as SETVariable, INPUt, etc.  These variables define strings
  702. used by certain program features.  For example, the path\filename of the
  703. Usage Log is defined in the Setup File as follows:
  704.  
  705.      {set _uselog,c:\commo\commo.log}
  706.  
  707. BUILT-IN variables are defined by {COMMO} based on current system 
  708. parameters.  Examples are:
  709.  
  710.      _cap
  711.           Current Capture File path\filename
  712.  
  713.      _tim
  714.           Current time of day
  715.  
  716. Any variable that starts with the same four characters as a built-in
  717. variable ("_" plus the next three) will be considered the same variable. 
  718. For example "_pas" may be written "_password" and "_yea" may be written
  719. "_year".
  720.  
  721. {COMMO} will always search String Variable Space first when looking up the
  722. value of any variable.  This allows built-in variables to be overridden,
  723. but only when using their four character minimum names.  For example, to
  724. override the serial port number, you must use "_por", not "_port".
  725.  
  726.  
  727.  
  728.                                     -16-
  729.  
  730.  
  731. See Appendix I for a complete list of reserved variables.
  732.  
  733.  
  734. -----=====  Executing Macros
  735.  
  736. Macro execution may be started in any of the following ways:
  737.  
  738. 1)   Open the Macro File window by pressing Alt-M.  Position the Selector
  739.      Bar at the desired starting point and press [Enter].  The macro will
  740.      begin executing at the first macro label or function on the line.
  741.  
  742.      NOTE:  Macros started with the Selector Bar do not need macro labels
  743.      and may be started at any point within the macro.
  744.  
  745. 2)   If a macro label is also a key-label, then you may press that key from
  746.      the Terminal Screen.  Note that if the same key-label appears more
  747.      than once, the first occurrence will be used.
  748.  
  749. 3)   A macro may be linked to a Dialing Directory entry (Linked Macro).  In
  750.      this case {COMMO} will GOTO the macro when a connection is established
  751.      with that system (or optionally CALL it, see the DIAL function).
  752.  
  753. 4)   A startup macro may be specified in the Setup File using the
  754.      "{mac=label}" item.
  755.  
  756. 5)   A startup macro may be specified on the command line with the switch
  757.      "/:label".  This will override the Setup File macro.
  758.  
  759. 6)   A macro may be an argument of another function such as CALL, GOTO,
  760.      DIAL or SETLook.
  761.  
  762. Some macro functions show their current action on the Status Line.  In
  763. addition, a "face" character in the middle of the Status Line indicates
  764. that a macro is executing.
  765.  
  766.  
  767. -----=====  Additional Macro Execution Rules
  768.  
  769. Characters may be typed to the serial port during functions that wait
  770. (LOOKfor, GETString, PAUSe, HOLD, etc.).  Command keys will be ignored
  771. during macro execution.
  772.  
  773. Functions will execute IN SEQUENCE until one of the following conditions
  774. occurs:
  775.  
  776. 1)   A CALL, GOTO, RETURn, STOP, EXIT, etc. is encountered.
  777.  
  778. 2)   Control is transferred to an alternate macro from certain functions
  779.      when a special condition occurs.  An example of this is the SETLook
  780.      function.  The alternate will execute when a subsequent LOOKfor times
  781.      out.
  782.  
  783.  
  784.  
  785.                                     -17-
  786.  
  787. 3)   A Macro Error occurs (and SETR has not been executed).  This will
  788.      bring up the Macro File window with the Selector Bar on the problem
  789.      line.  The macro will be terminated.
  790.  
  791. 4)   The end of a Macro File is reached.
  792.  
  793.  
  794. -----=====  Cancelling a Macro
  795.  
  796. The [Esc] key is used to terminate macro execution.  To type an <esc> code
  797. (ASCII 27) to the remote during macro execution (without terminating the
  798. macro), press Ctrl-[ (Ctrl + left bracket).
  799.  
  800. Current function execution may be terminated by pressing [Ctrl-Break].  For
  801. example, this can be used to terminate a LOOKfor, PAUSe or HOLD
  802. prematurely.  Macro execution will advance to the next function.
  803.  
  804. If a macro contains a function that brings up a {COMMO} window (Dialing
  805. Directory, Capture File Options, etc.), then [Esc] will exit the window and
  806. execution continues with the next function.  To terminate macro execution
  807. from a window, press [Ctrl-Break].
  808.  
  809. NOTE:  The SETEsc function may be used to help prevent accidental
  810. termination of macros.
  811.  
  812.  
  813. -----=====  A Macro Example in Detail
  814.  
  815. The following macro example from SAMPLES.MAC can be used to log in to many
  816. types of Bulletin Board Systems.  This is a Linked Macro, so the label
  817. "login" would appear in the Dialing Directory macro field for each system
  818. that uses it.  When you dial and connect to one of the systems, {COMMO}
  819. will automatically GOTO the macro.
  820.  
  821. The subroutine "gls" (generic login subroutine) can also be called from
  822. macros that perform mailruns and other BBS operations.
  823.  
  824. Note that labels and functions may be placed side by side on the same line
  825. (up to 255 characters).  For purposes of this example each item is placed
  826. on its own line.
  827.  
  828. The main routine at "login" performs some initial functions and then calls
  829. the subroutine at "gls".  The subroutine looks for various prompts,
  830. responds to them and returns after responding to the "password" prompt.
  831.  
  832.  
  833. {:login}
  834.      The entry point.  All labels begin with a ":".
  835.  
  836. {capture y,c:\commo\commo.cap}
  837.      "y" means open the Capture File.  The path\filename of the file is
  838.      specified here, otherwise the current Capture File (if there is one)
  839.      would be opened.
  840.  
  841.  
  842.  
  843.                                     -18-
  844.  
  845.  
  846. {asci ,}
  847.      Set ASCII Upload to "no pacing."
  848.  
  849. {call gls}
  850.      CALL the macro at "gls".  When the subroutine executes a RETUrn,
  851.      control will come back here.
  852.  
  853. {}
  854.      STOP and resume manual operation in the Terminal Screen.  Without this
  855.      STOP execution would continue into subsequent macros.  Remember that
  856.      labels are "passed over" during sequential macro execution.
  857.  
  858. {:gls}
  859.      The entry point of the "gls" subroutine.
  860.  
  861. {setlook 60,hng,10,|}
  862.      This function specifies parameters that go into effect whenever a
  863.      LOOKfor executes.  It tells {COMMO} to wait up to 60 seconds for the
  864.      string (or strings) and to GOTO the label "hng" if none of the strings
  865.      appear within that time.  The timer is restarted each time a LOOKfor
  866.      begins to execute.
  867.  
  868.      This SETLook also specifies that a "|" (carriage return) should be
  869.      sent to the modem whenever 10 seconds have elapsed and no characters
  870.      are received.  This is used to respond to prompts that are not
  871.      explicitly specified in SSLOoks/CALOoks/GOLOoks/LOOKfors (e.g., "Press
  872.      any key to continue").
  873.  
  874.      Use this latter facility with care since a BBS may spend time
  875.      processing and not actually be expecting input from the caller.  The
  876.      carriage returns sent will accumulate and be used to satisfy later
  877.      prompts, causing things to get out of "sync."  Adjust the 10 second
  878.      timeout as needed.
  879.  
  880. {setv ss_r,~|}
  881. {setv ss_yr,~y|}
  882.      Variables are set for some common responses.  They will be used later
  883.      by SSLOok functions.  For convenience, these variables may be defined
  884.      in the Setup File (using the "set" keyword).
  885.  
  886.      SSLOoks, CALOoks and GOLOoks store strings to look for, but do not
  887.      wait for the strings (only a LOOKfor can do the actual waiting).
  888.  
  889. {:li1}
  890. {sslo ss_r,(enter)}
  891. {sslo ss_yr,graphics (enter)}
  892. {sslo ss_yr,is this correct} 
  893.      The SSLOoks will send the strings in the variables when the respective
  894.      targets are received.  The looking for all of the stored strings then
  895.      resumes.
  896.  
  897. {calo li1,li2,first name}
  898.  
  899.  
  900.  
  901.                                     -19-
  902.  
  903. {calo li1,li3,last name}
  904.      CALOoks will CALL the second label if the target string appears (the
  905.      LOOKfor is terminated).  When the macro executes a RETUrn, control
  906.      goes to the first label where all of the strings can be set up again. 
  907.      Note that CALOoks are used here for demonstration.  SSLOoks could be
  908.      used as well (and probably should be).
  909.  
  910. {golo li1,;passwor}
  911.      A GOLOok will set up a string and GOTO the label if the string appears
  912.      (only one label is used).  In this example the specified string is to
  913.      be ignored.  This was needed for a BBS that used the string
  914.      "first;last;password" prior to the actual password prompt.
  915.  
  916. {lookfor password}
  917.      This is where the actual "looking" takes place.  Remember that
  918.      SSLOoks, CALOoks and GOLOoks only cause strings to be stored but do
  919.      not actually wait for the strings.
  920.  
  921.      The LOOKfor will wait for the string specified and also any other
  922.      stored strings (up to 16 total).  If the string in the LOOKfor
  923.      appears, control passes to the next macro function.
  924.  
  925.      "password" is assumed to be the last prompt in the login sequence.
  926.  
  927. {send ~%_pas|}
  928.      Control then passes here and the string is sent to the modem.  The
  929.      tilde (~) causes a half-second delay before sending the password.  The
  930.      password in the Dialing Directory entry was stored into the built-in
  931.      variable "_pas" when dialing began.
  932.  
  933.      Finally, a carriage return (|) is sent.
  934.  
  935. {return}
  936.      This will RETUrn to the "login" macro.
  937.  
  938. {:li2}
  939. {send ~Firstname|}
  940.      Response to "first name".
  941.  
  942. {return}
  943.  
  944. {:li3}
  945. {send ~Lastname|}
  946.      Response to "last name".
  947.  
  948. {return}
  949.  
  950.  
  951.  
  952.                                     -20-
  953.  
  954. ==========  Description of Functions (Alphabetical)
  955.  
  956. The purpose of this section is to show the syntax of each function and the
  957. meaning of its arguments through examples.  All functions are listed here,
  958. but details for functions which are also default key commands are found in
  959. Part I (COMMO.DOC) under "{COMMO} Key Commands."
  960.  
  961. Function names are shown with their four-letter abbreviations in uppercase.
  962.  
  963. For consistency, the following conventions are used in many functions:
  964.  
  965.      "y" or "yes" is used to indicate "yes", "on",  "open",  etc.
  966.      "n" or "no"  is used to indicate "no",  "off", "close", etc.
  967.  
  968.  
  969. ===  ALARm  ===
  970.  
  971. Default key:   none
  972. Description:   Ring the alarm.
  973.  
  974. Examples:
  975.  
  976.      {alarm}
  977.           Ring alarm, use ring count in Setup File.
  978.  
  979.      {alarm 2}
  980.           Ring alarm 2 times.
  981.  
  982. {COMMO} will wait until the alarm has stopped ringing before proceeding to
  983. the next macro function (the alarm may be terminated early by pressing a
  984. key).
  985.  
  986.  
  987. ===  ASCIiup  ===
  988.  
  989. Default key:   Alt-A
  990. Description:   Upload an ASCII (text) file.
  991.  
  992. General form:
  993.  
  994.      {ASCIiup path\filename[\],pace}
  995.  
  996.           path\filename
  997.                The complete path and filename (if the path is absent, the
  998.                current directory will be used).
  999.  
  1000.                If a path only is used (signified by a "\" at the end) the
  1001.                ASCII Upload window will open, prompting you to enter the
  1002.                filename.
  1003.  
  1004.           pace
  1005.                The pacing character to be used.
  1006.  
  1007.  
  1008.  
  1009.                                     -21-
  1010.  
  1011. Switches:
  1012.  
  1013.      E1 or E
  1014.           Expand blank lines.  A space will be sent when a zero-character
  1015.           line is encountered.
  1016.  
  1017.      E0
  1018.           Do not expand blank lines.
  1019.  
  1020.      S1 or S
  1021.           Strip linefeeds from outgoing text.
  1022.  
  1023.      S0
  1024.           Do not strip linefeeds.
  1025.  
  1026.           If a switch is absent, the current setting of the toggle will be
  1027.           used.  The toggles can be set in the Setup File or by using the
  1028.           Alt-T key command.
  1029.  
  1030.           Switches apply to the current function only and do not affect the
  1031.           settings of the toggles.
  1032.  
  1033. Examples:    
  1034.  
  1035.      {asci}
  1036.           Open ASCII Upload window.
  1037.  
  1038.      {asci-S}
  1039.           Open ASCII Upload window, strip linefeeds when file is sent.
  1040.  
  1041.      {asci %uldir%\}
  1042.           Open ASCII Upload window, prompt with the current value of the
  1043.           variable "uldir".
  1044.  
  1045.      {asci c:\msgs\file.xyz,:}
  1046.           Upload "file.xyz."  Use ":" for pacing.
  1047.  
  1048.      {asci-E0 c:\msgs\file.xyz}
  1049.           Upload "file.xyz."  Use current pacing character, do not expand
  1050.           blank lines.
  1051.  
  1052.      {asci c:\msgs\file.xyz,}
  1053.           Upload "file.xyz."  Do not use pacing.
  1054.  
  1055.      {asci ,?}
  1056.           Set current pacing character to "?"
  1057.  
  1058.      {asci ,}
  1059.           Set current pacing to "no" pacing.
  1060.  
  1061. The pacing character may be entered according to the rules shown in
  1062. Appendix D.  For example, "^m" or "|" may be used to represent the carriage
  1063. return.
  1064.  
  1065.  
  1066.  
  1067.                                     -22-
  1068.  
  1069.  
  1070.  
  1071. ===  AUTO  ===
  1072.  
  1073. Default key:   none
  1074. Description:   Maintain Auto Receive strings.
  1075.  
  1076. General form:
  1077.  
  1078.      {AUTO label,string}
  1079.  
  1080.           label
  1081.                Label to GOTO when the string is received.
  1082.  
  1083.           string
  1084.                String to look for, may be up to 32 characters.
  1085.  
  1086. Examples:
  1087.  
  1088.      {auto}
  1089.           Clear all Auto Receive strings.
  1090.  
  1091.      {auto zmodem,^XB00}
  1092.           Zmodem Auto Receive string.
  1093.  
  1094. Note that up to 16 Auto Receive strings may be in effect at the same time
  1095. (including any strings defined with the "aut" item in the Setup File).
  1096.  
  1097. Use this function with no arguments to clear all strings when necessary.
  1098.  
  1099. See also "TIPS on creating LOOKfor strings" under LOOKfor.
  1100.  
  1101.  
  1102. ===  BEEP  ===
  1103.  
  1104. Default key:   none
  1105. Description:   Play a sequence of sounds.
  1106.  
  1107. Examples:
  1108.  
  1109.      {beep 36,440,18,523}
  1110.           Play an A note for two seconds followed by a C note for one
  1111.           second.
  1112.  
  1113.      {beep}
  1114.           Default is a short beep sound.
  1115.  
  1116. Listed arguments are treated as pairs.  The first number of each pair is
  1117. the duration of the sound in 18ths of a second (system clock ticks).  The
  1118. second number is the frequency in Hz (0 to 19 is silence).
  1119.  
  1120.  
  1121.  
  1122.                                     -23-
  1123.  
  1124. Here is a frequency chart for five octaves:
  1125.  
  1126.      C         131     262     523     1040     2093
  1127.      C#/Db     139     277     554     1103     2217
  1128.      D         147     294     587     1176     2349
  1129.      D#/Eb     156     311     622     1241     2489
  1130.      E         165     330     659     1311     2637
  1131.      F         175     349     698     1391     2794
  1132.      F#/Gb     185     370     740     1488     2960
  1133.      G         196     392     784     1568     3136
  1134.      G#/Ab     208     415     831     1662     3322
  1135.      A         220     440     880     1760     3520
  1136.      A#/Bb     233     466     932     1866     3729
  1137.      B         248     494     988     1973     3951
  1138.  
  1139.  
  1140. ===  BREAk  ===
  1141.  
  1142. Default key:   Alt-B
  1143. Description:   Send a break.
  1144.  
  1145. Switches:
  1146.  
  1147.           Tn
  1148.                Set break duration in system clock ticks.  "n" may range
  1149.                from 1 to 999.  There are 18.2 clock ticks per second.
  1150.  
  1151.           T0 or T
  1152.                Set break duration to 18 clock ticks (default).
  1153.  
  1154. Examples:
  1155.  
  1156.      {break}
  1157.           One second break.
  1158.  
  1159.      {break-t9}
  1160.           One-half second break.
  1161.  
  1162.      {break-t55}
  1163.           Three second break.
  1164.  
  1165.  
  1166. ===  CALL  ===
  1167.  
  1168. Default key:   none
  1169. Description:   Execute a macro subroutine.
  1170.  
  1171. General form:
  1172.  
  1173.      {CALL label,filename}
  1174.  
  1175.  
  1176.  
  1177.                                     -24-
  1178.  
  1179.           label
  1180.                The label that begins the subroutine to be executed.
  1181.  
  1182.           filename
  1183.                The name of the Macro File where the label is to be found. 
  1184.                This argument is OPTIONAL and is normally used only if the
  1185.                file is not already loaded.  Do NOT specify a path; the
  1186.                {COMMO} home directory will be used.
  1187.  
  1188. Switches:
  1189.  
  1190.           F1 or F
  1191.                Force loading of the specified file (as the auxiliary file). 
  1192.                No filename comparison will be made.
  1193.  
  1194.           F0
  1195.                Compare filenames.  If the file is already loaded (resident
  1196.                or auxiliary), it will not be reloaded (default).
  1197.  
  1198. Examples:
  1199.  
  1200.      {call abc}
  1201.           Execute subroutine "abc".
  1202.  
  1203.      {call abc,other.mac}
  1204.           Execute subroutine "abc" in the auxiliary Macro File "other.mac".
  1205.  
  1206. CALL will push the return location onto the macro stack; then it will
  1207. transfer control to the given label.  When a RETUrn is executed, the
  1208. location will be popped and control will return to the function following
  1209. the CALL.  If the CALL is located in the auxiliary Macro File, the filename
  1210. will be saved on the macro stack along with the return location.
  1211.  
  1212. If a filename is specified, {COMMO} will check to see if the file is
  1213. already loaded (resident or auxiliary).  If not, the file will be loaded as
  1214. the auxiliary (the current auxiliary will be saved to disk if there are any
  1215. outstanding changes).
  1216.  
  1217. TIPS on using CALL:
  1218.  
  1219.  *   It isn't necessary to specify a filename if the target label is in the
  1220.      resident Macro File or in the current auxiliary file.
  1221.  
  1222.  *   A Macro Error will result if either the label or the file do not
  1223.      exist.
  1224.  
  1225.  *   CALLs may be nested up to 32 deep.
  1226.  
  1227.  *   Use GOTO when you want to load or execute macros in another file and
  1228.      you do not need to return.  This will prevent the macro stack from
  1229.      filling with "dead" entries.
  1230.  
  1231.  
  1232.  
  1233.                                     -25-
  1234.  
  1235.  *   Do not modify a Macro File while a CALL from that file is active (the
  1236.      return location may be invalidated).
  1237.  
  1238. See also RETUrn, GOTO, PUSHstack, POPStack, UNLOad, Appendix K.
  1239.  
  1240.  
  1241. ===  CALOok  ===
  1242.  
  1243. Default key:   none
  1244. Description:   CALL a label when a string appears.
  1245.  
  1246. General form:
  1247.  
  1248.      {CALOok label1,label2,target}
  1249.  
  1250.           label1
  1251.                The location to return to after label2 is CALLed.
  1252.  
  1253.           label2
  1254.                The label to CALL when the target is received from the
  1255.                serial port.
  1256.  
  1257.           target
  1258.                The ASCII string to look for.  The string begins following
  1259.                the "," and is terminated by the "}".
  1260.  
  1261. CALOok is used in conjunction with the LOOKfor function.  It sets up an
  1262. additional string to look for.  When the target string appears, a CALL is
  1263. made to "label2."  When the routine executes a RETUrn, control will pass to
  1264. "label1".  This is equivalent to:
  1265.  
  1266.      {call label2} {:label1} ...
  1267.  
  1268. See LOOKfor for details, examples and tips on using CALOok.
  1269.  
  1270. See also SSLOok, GOLOok, SETLook.
  1271.  
  1272.  
  1273. ===  CAPMode  ===
  1274.  
  1275. Default key:   none
  1276. Description:   Set Capture Mode.
  1277.  
  1278. Examples:
  1279.  
  1280.      {capmode screen}
  1281.           Set Capture Mode to SCREEN.
  1282.  
  1283.      {capmode filter}
  1284.           Set Capture Mode to FILTER.
  1285.  
  1286.  
  1287.  
  1288.                                     -26-
  1289.  
  1290.  
  1291.      {capmode raw}
  1292.           Set Capture Mode to RAW.
  1293.  
  1294. See also CAPTure.
  1295.  
  1296.  
  1297. ===  CAPTure  ===
  1298.  
  1299. Default key:   Alt-1
  1300. Description:   Capture File Options.
  1301.  
  1302. Switches:
  1303.  
  1304.      N1 or N
  1305.           Do not wait for a keypress if the disk fills up while capturing
  1306.           (a message is displayed for several seconds).  The setting
  1307.           remains in effect until the Capture File is closed.
  1308.  
  1309.           NOTE:  This switch is effective only on a CAPTure function that
  1310.           successfully opens a Capture File.
  1311.  
  1312.      N0
  1313.           Wait for Esc to be pressed if the disk fills up (default).
  1314.  
  1315. Examples:
  1316.  
  1317.      {capture}
  1318.           Open Capture File Options window.
  1319.  
  1320.      {capture y}
  1321.           Open current Capture File.
  1322.  
  1323.      {capture n}
  1324.           Close current Capture File.
  1325.  
  1326.      {capt y,c:\commo\file.xyz}
  1327.           Open indicated Capture File.
  1328.  
  1329.      {capt n,c:\dl\newfile.cap}
  1330.           Close current Capture File, set new file as indicated.
  1331.  
  1332. The current Capture File will always be closed when a new file is opened.
  1333.  
  1334. IMPORTANT!  If the disk fills while capture is open, a "disk full" message
  1335. will appear (see the "N" switch above) and the file will be closed.  The
  1336. built-in variable "_dfc" will be set to 1.
  1337.  
  1338. See also CAPMode.
  1339.  
  1340.  
  1341.  
  1342.                                     -27-
  1343.  
  1344. ===  CHATmode  ===
  1345.  
  1346. Default key:   Alt-- (Alt minus)
  1347. Description:   Set Chat Mode toggle.
  1348.  
  1349. Examples:
  1350.  
  1351.      {chat}
  1352.           Toggle Chat Mode on/off.
  1353.  
  1354.      {chat y}
  1355.           Turn on Chat Mode.
  1356.  
  1357.      {chat n}
  1358.           Turn off Chat Mode
  1359.  
  1360.  
  1361. ===  CLEAr  ===
  1362.  
  1363. Default key:   Alt-C
  1364. Description:   Clear Terminal Screen to default colors.
  1365.  
  1366. Example:
  1367.  
  1368.      {clear}
  1369.           No arguments.
  1370.  
  1371.  
  1372. ===  COMPare  ===
  1373.  
  1374. Default key:   none
  1375. Description:   Compare a string or numeric variable.
  1376.  
  1377. General form:
  1378.  
  1379.      {COMPare name,string}
  1380.  
  1381.           name
  1382.                The name of a variable.
  1383.  
  1384.           string
  1385.                A string of ASCII characters.
  1386.  
  1387. Examples:
  1388.  
  1389.      {comp pword,aardvark}
  1390.           Test if the variable "pword" is set to "aardvark."
  1391.  
  1392.      {comp pword}
  1393.           Test if "pword" is null.
  1394.  
  1395.  
  1396.  
  1397.                                     -28-
  1398.  
  1399.      {comp pword,}
  1400.           Test if "pword" is null.
  1401.  
  1402.      {comp nmbr,5}
  1403.           Compare a numeric variable.
  1404.  
  1405.      {comp abc,%xyz}
  1406.           Test if the variable "abc" is equal to the variable "xyz."
  1407.  
  1408. A numeric variable is a string of ASCII digits, 0-9, forming a positive
  1409. integer.  If the number is outside the allowed range or contains non-
  1410. numeric characters, the results of the compare will be unpredictable.
  1411.  
  1412. COMPare will set flags which can be tested with the IFCOndition function.
  1413.  
  1414.      The Condition Flag will be set to "true" if the two arguments are
  1415.      identical strings (case is ignored).  Otherwise it will be set to
  1416.      "false."
  1417.  
  1418.      The Numeric Flag will be set to "equal", "less than" or "greater
  1419.      than."  This flag is unpredictable unless both arguments are valid
  1420.      numeric variables.
  1421.  
  1422. A variable may be tested for being null (no entry in variable space) by
  1423. omitting the second argument (or by comparing to a null variable).
  1424.  
  1425. See also IFCOndition.
  1426.  
  1427.  
  1428. ===  CURSor  ===
  1429.  
  1430. Default key:   none
  1431. Description:   Terminal Screen cursor on/off.
  1432.  
  1433. Examples:
  1434.  
  1435.      {cursor}
  1436.           Toggle Terminal cursor on/off.
  1437.  
  1438.      {curs y}
  1439.           Turn on Terminal Screen cursor.
  1440.  
  1441.      {curs n}
  1442.           Turn off Terminal Screen cursor.
  1443.  
  1444.  
  1445. ===  DECRement  ===
  1446.  
  1447. Default key:   none
  1448. Description:   Subtract a number from a numeric variable.
  1449.  
  1450.  
  1451.  
  1452.                                     -29-
  1453.  
  1454. Examples:
  1455.  
  1456.      {decr count}
  1457.           Subtract 1 from the variable "count".
  1458.  
  1459.      {decr apples,200}
  1460.           Subtract 200 from "apples".
  1461.  
  1462. The default for the second argument is 1.
  1463.  
  1464. If the result is less than 0 or if either argument is out of range, then
  1465. the variable will be set to the string "ERROR".
  1466.  
  1467. If the variable is not numeric, the results will be unpredictable.
  1468.  
  1469. See also INCRement.
  1470.  
  1471.  
  1472. ===  DIAL  ===
  1473.  
  1474. Default keys:  Alt-D, Alt-N
  1475. Description:   Open Dialing Directory, dial marked systems.
  1476.  
  1477. General form:
  1478.  
  1479.      {DIAL tries,label1,label2}
  1480.  
  1481.           tries
  1482.                The maximum number of dialing tries.  If no connection is
  1483.                established when the try count is exhausted, the macro in
  1484.                the second argument will be started.  May be 0 to 999.  "0"
  1485.                means unlimited.  Default is 0.
  1486.  
  1487.           label1
  1488.                A macro to GOTO if the try count in the first argument is
  1489.                exhausted.  If no macro is specified or if the macro label
  1490.                is invalid, control will pass to the next function.  Default
  1491.                is none.
  1492.  
  1493.                If the "C" switch is used, the macro will be CALLed.  When a
  1494.                RETUrn is executed, control will return to the DIAL
  1495.                function.
  1496.  
  1497.           label2
  1498.                A macro to GOTO when a response is matched during the Inter-
  1499.                dial Delay.  Response strings may be listed in the reserved
  1500.                variable "_dialir" and are usually defined in the Setup
  1501.                File.  If no macro is specified or if the macro label is
  1502.                invalid, the response is ignored.
  1503.  
  1504.                If the "C" switch is used, the macro will be CALLed.  When a
  1505.                RETUrn is executed, control will return to the DIAL
  1506.                function.
  1507.  
  1508.  
  1509.  
  1510.                                     -30-
  1511.  
  1512.  
  1513. Switches:
  1514.  
  1515.      C1 or C
  1516.           Specifies that macros will be started via CALL (instead of GOTO). 
  1517.           When the macros execute a RETUrn, control returns to the DIAL
  1518.           function and Multi Number Dialing will resume.
  1519.  
  1520.           The "C" switch applies to the Linked Macro (from the Dialing
  1521.           Directory), the "tries exhausted" macro and to the Inter-dial
  1522.           Delay macro.
  1523.  
  1524.      C0
  1525.           Start dialing macros via GOTO (default).
  1526.  
  1527. Examples:
  1528.  
  1529.      {dial}
  1530.           Open Dialing Directory window (similar to Alt-D).
  1531.  
  1532.      {dial ,}
  1533.           Multi Number Dial (similar to Alt-N).
  1534.  
  1535.      {dial 25,abc}
  1536.           Multi Number Dial with try count.
  1537.  
  1538.      {dial-C ,}
  1539.           Multi Number Dial, CALL Linked Macros.
  1540.  
  1541.      {dial-c ,,inter}
  1542.           Multi Number Dial with Inter-dial Delay macro.
  1543.  
  1544.  
  1545. ----------  Marking Numbers for Dialing
  1546.  
  1547. Numbers may be marked in one of several ways:
  1548.  
  1549.      1)   Manually in the Dialing Directory window.
  1550.      2)   By placing Dialing Strings on the {COMMO} command line.
  1551.      3)   Using the MARK macro function.
  1552.  
  1553. Marked numbers will be redialed in sequence.  If a connection occurs and a
  1554. valid Linked Macro is specified in the Dialing Directory, the macro will be
  1555. started via GOTO (or CALL if the "C" switch is present).  If no Linked
  1556. Macro is specified in the Dialing Directory or if the macro label is
  1557. invalid, macro execution will STOP.
  1558.  
  1559. If no numbers are marked when executing the DIAL, control will pass to the
  1560. next function.
  1561.  
  1562.  
  1563.  
  1564.                                     -31-
  1565.  
  1566. ----------  Automatic Resumption of Dialing
  1567.  
  1568. Here are two methods for resuming at the end of a Linked Macro.  Both allow
  1569. multiple systems to be called without operator intervention.
  1570.  
  1571.      1)   Use the "C" switch on the DIAL function.  Each Linked Macro
  1572.           should end with a RETUrn which will transfer control back to the
  1573.           DIAL.  When all numbers have been called, control will pass to
  1574.           the function following the DIAL.
  1575.  
  1576.      2)   At the end of each Linked Macro (after logging off), GOTO a macro
  1577.           such as this:
  1578.  
  1579.             {:nocar} {pause 1} {ifcarrier nocar} {dial ,} {}
  1580.  
  1581.           This ensures that carrier has dropped before DIALing the next
  1582.           number.  The PAUSe allows data to display on the screen while
  1583.           waiting for carrier to drop.
  1584.  
  1585.  
  1586. ----------  Testing Success and Failure Results
  1587.  
  1588. Details about a successful or failed dialing attempt are available in
  1589. several reserved variables (see Appendix I "List of Reserved Variables" for
  1590. complete descriptions):
  1591.  
  1592.      _dtc
  1593.           Dialing termination code
  1594.  
  1595.      _dialrt
  1596.           Dialing response text
  1597.  
  1598.      _mod
  1599.           Speed reported by modem (normally in the CONNECT or CARRIER
  1600.           response)
  1601.  
  1602. After a successful attempt the variables "_dialrt" and "_mod" may be tested
  1603. in your Linked Macro.  For example, if you expected a high-speed connect
  1604. and the speed reported was 2400 or 1200, then you may want to hang up and
  1605. try again later.
  1606.  
  1607. You can get control after each failed attempt by using "DIAL 1", with or
  1608. without a macro.  For example:
  1609.  
  1610.      1)   {dial-c 1,nocon} ...
  1611.  
  1612.           The Linked Macro and the "no connect" macro will be CALLed (the
  1613.           "C" switch).  The variables "_dtc" and "_dialrt" may be tested in
  1614.           the macro at "nocon".
  1615.  
  1616.  
  1617.  
  1618.                                     -32-
  1619.  
  1620.      2)   {dial 1} ...
  1621.  
  1622.           Control will pass to the next function if a dialing attempt fails
  1623.           or when no more systems are marked (test "_dtc" to determine
  1624.           which).
  1625.  
  1626. If the testing indicates that the system should not be dialed again (e.g.,
  1627. it did not answer, _dtc = 3), the UNMArk function can be used with the "L"
  1628. switch to unmark the last number dialed: {unmark-l}.
  1629.  
  1630.  
  1631. ----------  Handling Incoming Calls
  1632.  
  1633. Most modems return the string "RING" when a call comes in.  If this happens
  1634. during the Inter-dial Delay, you may choose to stop dialing (to answer a
  1635. voice call) or to send a brief message to a modem caller (during a BBS
  1636. event, for example).
  1637.  
  1638. Use "label2" on the DIAL function to process responses during the Inter-
  1639. dial Delay.  For example:
  1640.  
  1641.      {dial ,,incoming}
  1642.  
  1643. The macro at "incoming" will execute if the modem sends an Inter-dial Delay
  1644. response string (these are normally defined in the Setup File with the
  1645. "_dialir" variable).
  1646.  
  1647. See also SETDial, MARK, UNMArk.
  1648.  
  1649.  
  1650. ===  DISPlay  ===
  1651.  
  1652. Default key:   none
  1653. Description:   Display a string to the screen.
  1654.  
  1655. General form:
  1656.  
  1657.      {DISPlay row,col,attr,string}
  1658.  
  1659.           row
  1660.                The row where the string will display.
  1661.  
  1662.           col
  1663.                The column where the string will display.
  1664.  
  1665.           attr
  1666.                The attribute (colors) of the string.
  1667.  
  1668.           string
  1669.                The text of the string (no quotes).
  1670.  
  1671.  
  1672.  
  1673.                                     -33-
  1674.  
  1675. Examples:
  1676.  
  1677.      {display 12,20,17,Hello!}
  1678.           Display "Hello!" at row 12, column 20.  Colors are white on blue.
  1679.  
  1680.      {disp ,,,Hello, again.^m^j}
  1681.           Display "Hello, again." at the current cursor using the current
  1682.           attribute, followed by a cr/lf.
  1683.  
  1684.      {disp 3,40}
  1685.           Position the cursor at row 3, column 40.
  1686.  
  1687. TIPS on using DISPlay:
  1688.  
  1689.  *   The attribute is specified in the same manner as the colors in the
  1690.      Setup File (press F7 in the Internal Editor to display the Color
  1691.      Chart).
  1692.  
  1693.  *   Setting background colors to high intensity values will cause blinking
  1694.      (for example, using "9" instead of "1" will still give a blue
  1695.      background but the foreground character will blink).  
  1696.  
  1697.  *   After the string is displayed, the previous Terminal Screen attribute
  1698.      will be restored.
  1699.  
  1700.  *   Conversion is performed on the string according to the rules in
  1701.      Appendix D.
  1702.  
  1703.  
  1704. ===  DIVIde  ===
  1705.  
  1706. Default key:   none
  1707. Description:   Divide a numeric variable by a number.
  1708.  
  1709. Example:
  1710.  
  1711.      {divi space,1024}
  1712.           Divide "space" by 1024.
  1713.  
  1714. The divisor (second argument) is limited to 65535 (default is 1).
  1715.  
  1716. The named variable will be set to the quotient, the built-in variable
  1717. "_rem" will be set to the remainder.
  1718.  
  1719. If the divisor is zero or if either argument is out of range, then the
  1720. variable will be set to the string "ERROR".
  1721.  
  1722. If the variable is not numeric, the results will be unpredictable.
  1723.  
  1724.  
  1725.  
  1726.                                     -34-
  1727.  
  1728. ===  DOORway  ===
  1729.  
  1730. Default key:   Alt-=
  1731. Description:   Toggle Doorway Mode.
  1732.  
  1733. Switches:
  1734.  
  1735.      S1 or S
  1736.           Status Line on when entering Doorway Mode.
  1737.  
  1738.      S0
  1739.           Status Line off (default).
  1740.  
  1741.      M0
  1742.           Do not display Doorway enter/exit messages.
  1743.  
  1744.      M1
  1745.           Display enter/exit messages (default).
  1746.  
  1747. Examples:
  1748.  
  1749.      {doorway}
  1750.           Toggle Doorway Mode on/off.
  1751.  
  1752.      {door-S}
  1753.           Status Line on when entering Doorway Mode.
  1754.  
  1755.      {doorway-M0}
  1756.           Do not display enter/exit messages.
  1757.  
  1758. The "S" switch is ignored when exiting Doorway Mode (the Status Line will
  1759. be restored to its prior state).
  1760.  
  1761.  
  1762. ===  DPARms  ===
  1763.  
  1764. Default key:   Alt-P
  1765. Description:   Set Default Dialing Terminal Parameters
  1766.  
  1767. General form:
  1768.  
  1769.      {DPARms speed,format,comport,terminal-type,delay}
  1770.  
  1771.           speed
  1772.                The bps rate: 2400, 38400, etc.
  1773.  
  1774.           format
  1775.                The data format: 8n1, 7e1, etc.
  1776.  
  1777.           comport
  1778.                The serial port number: 1, 2, 3 or 4.
  1779.  
  1780.  
  1781.  
  1782.                                     -35-
  1783.  
  1784.           terminal
  1785.                The terminal-type: A, V or T.
  1786.  
  1787.           delay
  1788.                The inter-character delay factor: 0-999.
  1789.  
  1790. Examples:
  1791.  
  1792.      {dparms 38400,8,1,,20}
  1793.           Set 38400 bps, 8n1, Com1, delay=20.
  1794.  
  1795.      {dparms ,,4,V}
  1796.           Set Com4 VT102.
  1797.  
  1798.      {dparms 19200,7o1}
  1799.           Set 19200 bps, 7o1.
  1800.  
  1801. IMPORTANT!  Omitted parameters are not changed.
  1802.  
  1803. These are the parameters that are set whenever a number is DIALed.  Any of
  1804. them may be overridden in the Dialing Directory entry.
  1805.  
  1806. See also PARMs.
  1807.  
  1808.  
  1809. ===  EDIT  ===
  1810.  
  1811. Default key:   none
  1812. Description:   Edit an external file.
  1813.  
  1814. Example:
  1815.  
  1816.      {edit c:\autoexec.bat}
  1817.           Edit AUTOEXEC.BAT file.
  1818.  
  1819. EDIT may be used to edit any text file up to 64k in length.  The rules are
  1820. the same as for editing a support file with the Internal Editor.  See
  1821. Appendix K for more information.
  1822.  
  1823. TIPS on using EDIT:
  1824.  
  1825.  *   Any data beyond the last cr/lf pair will be removed prior to editing. 
  1826.      There must be at least one valid line in the file or an error will
  1827.      result.
  1828.  
  1829.  *   The file will be saved unconditionally when Alt-F is pressed or
  1830.      conditionally (if changes were made) when Esc is pressed.  The file is
  1831.      "saved in place" (no backup).
  1832.  
  1833.  
  1834.  
  1835.                                     -36-
  1836.  
  1837. ===  ELAPse  ===
  1838.  
  1839. Default key:   none
  1840. Description:   Reset the elapsed timer to 0 minutes.
  1841.  
  1842. Example:
  1843.  
  1844.      {elap}
  1845.           No arguments.
  1846.  
  1847. The elapsed timer is automatically reset whenever dialing begins and when a
  1848. connection is made with a remote system.
  1849.  
  1850.  
  1851. ===  EXECute  ===
  1852.  
  1853. Default key:   none
  1854. Description:   Execute a DOS command.
  1855.  
  1856. Switches:
  1857.  
  1858.      A1 or A
  1859.           Sound the alarm at the end of command execution.
  1860.  
  1861.      A0
  1862.           Do not sound the alarm (default).
  1863.  
  1864.      D1 or D
  1865.           Execute an external program directly, without use of the command
  1866.           processor (see details below).
  1867.  
  1868.      D0
  1869.           Use the command processor (default).
  1870.  
  1871.      N1 or N
  1872.           Do NOT clear the screen before execution.  This is useful when
  1873.           running programs that clear or rewrite the screen.  Also for
  1874.           simple DOS functions like changing directories, renaming files,
  1875.           etc.  
  1876.  
  1877.      N0
  1878.           Clear the screen (default).
  1879.  
  1880.      S1 or S
  1881.           Swap to Disk before executing the program (see details below).
  1882.  
  1883.      S0
  1884.           Do not swap to disk (default).
  1885.  
  1886.  
  1887.  
  1888.                                     -37-
  1889.  
  1890.      W
  1891.           Wait for a key press before restoring the Terminal Screen.  This
  1892.           is useful if you need to see the results of the command
  1893.           execution.
  1894.  
  1895.      Wn
  1896.           Wait for "n" seconds, "n" may range from 0 to 999.  Press a key
  1897.           to cancel the wait.
  1898.  
  1899.           Note:  Default (no "W" switch) is no wait.
  1900.  
  1901. Examples:
  1902.  
  1903.      {exec-AW3 hslink -P%_por %pr_file -U%pr_down}
  1904.           {COMMO} will prepare the HS/Link command by expanding the "%"
  1905.           variables, then call DOS to execute the program.
  1906.  
  1907.           See the section "Macro Variables" for complete details on
  1908.           variable substitution.
  1909.  
  1910.           The alarm will sound at completion (the "A" switch) and {COMMO}
  1911.           will wait for three seconds (the "W3" switch) before restoring
  1912.           the Terminal Screen.
  1913.  
  1914.      {execute-DN c:\utils\list.com %_cap}
  1915.           The LIST program will be directly executed with the current
  1916.           Capture File path\filename as a command line argument.  The
  1917.           screen will not be cleared (LIST will rewrite the screen). 
  1918.           {COMMO} will return immediately to the Terminal Screen when LIST
  1919.           exits.
  1920.  
  1921. The EXECute function enables you to "build" a command to be executed by
  1922. DOS.  The DOS command processor (COMMAND.COM) is normally used (see below),
  1923. which implies that you may specify any command as you would type it from
  1924. the DOS prompt.
  1925.  
  1926. Thus you can execute batch files and internal DOS commands (REN, DEL,
  1927. etc.).  Also you can omit command paths and extensions (if the command is
  1928. in your PATH or in the current directory).
  1929.  
  1930. Character conversion is performed in the EXECute function.  This enables
  1931. you to specify control characters.  For example:
  1932.  
  1933.      {exec echo ^L> prn}   Send a formfeed to the printer
  1934.  
  1935. See Appendix D for details on conversion.  Note that the vertical bar "|"
  1936. is NOT translated to a carriage return in the EXECute function.  
  1937.  
  1938. Key codes may be placed in the keyboard buffer prior to EXECute using the
  1939. KEYStuff function.
  1940.  
  1941.  
  1942.  
  1943.                                     -38-
  1944.  
  1945. ----------  Using the Direct Switch: EXEC-D
  1946.  
  1947. Use this switch to execute .EXE and .COM programs without the use of the
  1948. command processor (usually COMMAND.COM).
  1949.  
  1950. The program's Exit Code (called ERRORLEVEL in batch files) is saved and may
  1951. be tested with the IFERrorlevel function.  The Exit Code is also available
  1952. in the variable "_err".
  1953.  
  1954. There are several advantages to using the "D" switch:
  1955.  
  1956. 1)   Only the memory needed to run the program is required (the command
  1957.      processor requires that about 32k be available, even if the program
  1958.      being run is much smaller).
  1959.  
  1960. 2)   About 4k of memory is saved by not having a copy of the command
  1961.      processor resident when the program is running.
  1962.  
  1963. 3)   The program executes faster, since COMMAND.COM is not loaded from
  1964.      disk.
  1965.  
  1966. 4)   The program's Exit Code is preserved and may be tested with the
  1967.      {COMMO} IFERrorlevel function.
  1968.  
  1969. Two important rules must be followed when using the "D" switch:
  1970.  
  1971. 1)   The full path\filename of the program file must be specified,
  1972.      including the path where the file resides on disk and the file
  1973.      extension.  For example:
  1974.  
  1975.           {exec-D c:\util\list.com file.txt}
  1976.  
  1977. 2)   Only .EXE and .COM files may be run (batch files and internal DOS
  1978.      commands cannot be executed without COMMAND.COM).
  1979.  
  1980.  
  1981. ----------  Using the Swap to Disk Switch: EXEC-S
  1982.  
  1983. Using the "S" switch will free up most of the memory used by {COMMO}.  The
  1984. program and data will be saved to a special disk file.  The path\filename
  1985. of this file is specified with "swp=" in the Setup File (under "Paths and
  1986. Files").  If the Swap File cannot be created or there is not enough disk
  1987. space for the swap, the EXECute (or SHELl) will be attempted without
  1988. swapping.
  1989.  
  1990. When the program or shell exits back to {COMMO}, everything will be
  1991. restored in memory.  Any errors in this process will cause {COMMO} to exit
  1992. to DOS.
  1993.  
  1994.  
  1995.  
  1996.                                     -39-
  1997.  
  1998. TIPS on using Swap to Disk:
  1999.  
  2000.  *   Use Swap to Disk when running major applications such as external
  2001.      protocol programs, offline mail readers, etc.  Using it with internal
  2002.      DOS functions (DEL, COPY, REN, etc.) or very small programs is
  2003.      inefficient and unnecessary.
  2004.  
  2005.  *   If possible, specify the Swap File on a RAMDISK.  This will speed up
  2006.      the swap considerably.  A ramdisk program is supplied with DOS
  2007.      (RAMDRIVE.SYS or VDISK.SYS) or you can obtain one from a BBS.
  2008.  
  2009.  *   Be sure to specify a complete path\filename for the Swap File.
  2010.  
  2011.  *   Do not run any TSR (resident) programs when swapping is in effect. 
  2012.      Doing so may result in a swap error.
  2013.  
  2014.  *   The Dialing Directory, resident Macro File and auxiliary Macro File
  2015.      are saved under their original filenames if they have changed.  Thus
  2016.      they may be utilized and/or modified while in the swap/shell.
  2017.  
  2018.  
  2019. ----------  EXECute Preview Mode
  2020.  
  2021. Use the Set Toggles key command, Alt-T, to turn on "EXECute Preview Mode." 
  2022. This mode is used to test your DOS commands and performs the following
  2023. steps for each EXECute function:
  2024.  
  2025. 1)   The command will be displayed after expanding variables and converting
  2026.      control characters.
  2027.  
  2028. 2)   You will be given an opportunity to edit and/or cancel the command
  2029.      before it is executed.
  2030.  
  2031. 3)   Following execution {COMMO} will wait before restoring the Terminal
  2032.      Screen.  This lets you see any error messages that the command may
  2033.      have displayed.
  2034.  
  2035.  
  2036. ===  EXIT  ===
  2037.  
  2038. Default key:   Alt-X
  2039. Description:   Exit {COMMO}.
  2040.  
  2041. General form:
  2042.  
  2043.      {EXIT number}
  2044.  
  2045.           number
  2046.                The return code to be passed to DOS.  It may be tested with
  2047.                the IF ERRORLEVEL batch command.  Range is 0 to 255.
  2048.  
  2049.  
  2050.  
  2051.                                     -40-
  2052.  
  2053. Switches:
  2054.  
  2055.      D1 or D
  2056.           Drop DTR and RTS.  Dropping DTR will cause the modem to
  2057.           disconnect if it has been properly initialized.  See Appendix A.
  2058.  
  2059.      D0
  2060.           Do not drop DTR and RTS.
  2061.  
  2062.           If the switch is absent, the current setting of the toggle will
  2063.           be used.  The toggle can be set in the Setup File or by using the
  2064.           Alt-T key command.
  2065.  
  2066. Examples:
  2067.  
  2068.      {exit}
  2069.           No arguments (return code = 0).
  2070.  
  2071.      {exit 3}
  2072.           With return code.
  2073.  
  2074.      {exit-D}
  2075.           Drop DTR and RTS.
  2076.  
  2077.  
  2078. ===  FILE  ===
  2079.  
  2080. Default key:   none
  2081. Description:   Find directory entry information.
  2082.  
  2083. General form:
  2084.  
  2085.      {FILE filespec}
  2086.  
  2087.           filespec
  2088.                The path and file mask to be used for finding directory
  2089.                entries (filenames and subdirectories).  May consist of
  2090.                drive, path and filename with wildcards.
  2091.  
  2092. Switches:
  2093.  
  2094.      X1 or X
  2095.           Find next matching entry.
  2096.  
  2097.      X0
  2098.           Find first matching entry (default).
  2099.  
  2100.  
  2101.  
  2102.                                     -41-
  2103.  
  2104. Examples:
  2105.  
  2106.      {file c:\upload\*.*}
  2107.           Find first filename or subdirectory in the directory "c:\upload."
  2108.  
  2109.      {file-x}
  2110.           Find next filename in same directory.
  2111.  
  2112. The FILE function will find directory information about the files and
  2113. subdirectories specified in "filespec."  The data will be made available in
  2114. the following built-in variables:
  2115.  
  2116.      _ffn
  2117.           Filename or subdirectory name.  Subdirectory names will be
  2118.           preceded with a "\".  The parent directory (if any) will be
  2119.           indicated as "\..".
  2120.  
  2121.      _ffs
  2122.           File size in bytes.
  2123.  
  2124.      _ffd
  2125.           File date.  The format will be as specified in Setup File item
  2126.           "dat=".
  2127.  
  2128.      _fft
  2129.           File time.  The format will be as specified in Setup File item
  2130.           "tim=".
  2131.  
  2132. The FILE function must be executed without the "X" switch (or with X0) to
  2133. initialize the directory.  This will also make available the first filename
  2134. or subdirectory.  Subsequent executions (with the "X" switch) will make
  2135. subsequent names available.
  2136.  
  2137. Use the IFCOndition function to determine if a filename was made available. 
  2138. The first label ("true") will be taken if a filename was found;  the second
  2139. label ("false") will be taken if no additional filenames are available.
  2140.  
  2141. TIPS on using FILE:
  2142.  
  2143.  *   IMPORTANT!  Do not use IFEXist until all files have been found (it
  2144.      uses the same DOS file finding functions).
  2145.  
  2146.  *   The built-in variables will always contain the data for the last
  2147.      filename found.  If no filename has ever been found, the contents are
  2148.      unpredictable.
  2149.  
  2150.  
  2151. ===  FONFile  ===
  2152.  
  2153. Default key:   none
  2154. Description:   Load a new Dialing Directory file.
  2155.  
  2156.  
  2157.  
  2158.                                     -42-
  2159.  
  2160. Example:
  2161.  
  2162.      {fonf local.fon}
  2163.           The Dialing Directory is replaced with the file LOCAL.FON.
  2164.  
  2165. (Note that this feature is unavailable during shareware evaluation.)
  2166.  
  2167. The current Dialing Directory file will be saved to disk if there are any
  2168. outstanding changes.  Dialing marks in the new file will be erased if
  2169. {cdm=yes} in the Setup File.
  2170.  
  2171.  
  2172. ===  GETString  ===
  2173.  
  2174. Default key:   none
  2175. Description:   Input a string from the modem to a variable.
  2176.  
  2177. General form:
  2178.  
  2179.      {GETString name,count,label}
  2180.  
  2181.           name
  2182.                The name of the variable to which the string will be
  2183.                assigned.
  2184.  
  2185.           count
  2186.                The maximum number of data characters allowed.  A carriage
  2187.                return will always terminate input.  May be 1 to 240. 
  2188.                Default is 240.
  2189.  
  2190.           label
  2191.                A macro to GOTO if a carriage return is received and no
  2192.                characters have been entered (the string will be assigned as
  2193.                null).  If this argument is omitted, control will pass to
  2194.                the next function.
  2195.  
  2196. Switches:
  2197.  
  2198.      A1 or A
  2199.           "Append" mode.  Characters will be appended to the variable.  If
  2200.           the current length of the variable is greater than the count in
  2201.           the second argument, a count of 240 will be assumed.
  2202.  
  2203.      A0
  2204.           The variable will be replaced (default).
  2205.  
  2206.      H1 or H
  2207.           "Hotkey" mode.  When the maximum number of characters has been
  2208.           entered, control will pass to the next function.
  2209.  
  2210.      H0
  2211.           Ignore all input after the maximum has been entered, except
  2212.           backspace and carriage return (default).
  2213.  
  2214.  
  2215.  
  2216.                                     -43-
  2217.  
  2218.  
  2219.      I1 or I
  2220.           "Input" mode.  In this mode, characters from the modem will be
  2221.           ignored during the GETString (they will be buffered) and
  2222.           characters typed locally will not be sent to the remote.  This is
  2223.           another way to get local input (see also INPUt and INFOrm).  Echo
  2224.           Status from SETGet is ignored.
  2225.  
  2226.      I0
  2227.           Normal mode (default).
  2228.  
  2229.      P1 or P
  2230.           "Password" mode.  Asterisks will be echoed to the remote and
  2231.           local terminals in place of the received characters (Echo Status
  2232.           will be honored, see SETGet).
  2233.  
  2234.      P0
  2235.           Characters are echoed as received (default).
  2236.  
  2237. Examples:
  2238.  
  2239.      {setget 60,timeout,y,^m^j}
  2240.           Set GETString parameters.
  2241.  
  2242.      {gets fonum,12,badinput}
  2243.           Get input to "fonum."
  2244.  
  2245.      {gets-p pword,20}
  2246.           Get a password.
  2247.  
  2248. TIPS on using GETString:
  2249.  
  2250.  *   Use SETGet to set important parameters for GETString.
  2251.  
  2252.  *   A carriage return (ASCII 13) terminates input.  The backspace
  2253.      character (ASCII 8) is used for simple editing.  ASCII 0 and 10 are
  2254.      ignored.  All other characters will be accepted.  Note that tab (ASCII
  2255.      9) will cause problems in host macros.  Use RTRAn to filter tabs if
  2256.      necessary.
  2257.  
  2258.  *   GETString supports "tandem" input.  Characters entered at either end
  2259.      will be input to the string (and displayed at both ends if echo is on
  2260.      (see SETGet).  Turn on Local Echo to see text locally that is sent to
  2261.      the remote with SEND, ASCIiup, etc.
  2262.  
  2263.  *   Use the "H" switch and a character count of 1 for "hotkeys."
  2264.  
  2265.  *   Turn off echo (see SETGet) while waiting for the modem to answer (in
  2266.      host mode).  Some modems react poorly to characters being echoed when
  2267.      they are generating a response (such as "RING").
  2268.  
  2269.  *   Incoming characters displayed during a GETString function are not seen
  2270.      by subsequent SSLOok/CALOok/GOLOok/LOOKfor functions.
  2271.  
  2272.  
  2273.  
  2274.                                     -44-
  2275.  
  2276.  
  2277. See also SETGet, INPUt, INFOrm.
  2278.  
  2279.  
  2280. ===  GOLOok  ===
  2281.  
  2282. Default key:   none
  2283. Description:   GOTO a label when a string appears.
  2284.  
  2285. General form:
  2286.  
  2287.      {GOLOok label,target}
  2288.  
  2289.           label
  2290.                A label to GOTO when the target is received from the serial
  2291.                port.
  2292.  
  2293.           target
  2294.                The ASCII string to look for.  The string begins following
  2295.                the "," and is terminated by the "}".
  2296.  
  2297. GOLOok is used in conjunction with the LOOKfor function.  It sets up an
  2298. additional string to look for.  When the target string appears, control
  2299. will pass to the label.
  2300.  
  2301. See LOOKfor for details, examples and tips on using GOLOok.
  2302.  
  2303. See also SSLOok, CALOok, SETLook.
  2304.  
  2305.  
  2306. ===  GOTO  ===
  2307.  
  2308. Default key:   none
  2309. Description:   Transfer control of macro execution.
  2310.  
  2311. General form:
  2312.  
  2313.      {GOTO label,filename}
  2314.  
  2315.           label
  2316.                The label to which control will be transferred.
  2317.  
  2318.           filename
  2319.                The name of the Macro File where the label is to be found. 
  2320.                This argument is OPTIONAL and is normally used only if the
  2321.                file is not already loaded.  Do NOT specify a path; the
  2322.                {COMMO} home directory will be used.
  2323.  
  2324.  
  2325.  
  2326.                                     -45-
  2327.  
  2328. Switches:
  2329.  
  2330.           F1 or F
  2331.                Force loading of the specified file (as the auxiliary file). 
  2332.                No filename comparison will be made.
  2333.  
  2334.           F0
  2335.                Compare filenames.  If the file is already loaded (resident
  2336.                or auxiliary), it will not be reloaded (default).
  2337.  
  2338. Examples:
  2339.  
  2340.      {goto mail_run}
  2341.           Control transferred to label "mail_run".
  2342.  
  2343.      {goto mail_run,ginger.mac}
  2344.           Control transferred to label "mail_run" in the auxiliary Macro
  2345.           File "ginger.mac".
  2346.  
  2347.      {goto ,ginger.mac}
  2348.           The auxiliary Macro File "ginger.mac" is loaded; macro execution
  2349.           STOPs (no label given).
  2350.  
  2351. If a filename is specified, {COMMO} will check to see if the file is
  2352. already loaded (resident or auxiliary).  If not, the file will be loaded as
  2353. the auxiliary (the current auxiliary will be saved to disk if there are any
  2354. outstanding changes).
  2355.  
  2356. TIPS on using GOTO:
  2357.  
  2358.  *   It isn't necessary to specify a filename if the target label is in the
  2359.      resident Macro File or in the current auxiliary file.
  2360.  
  2361.  *   A Macro Error will result if either the label or the file do not
  2362.      exist.
  2363.  
  2364. See also CALL, UNLOad, Appendix K.
  2365.  
  2366.  
  2367. ===  HANGup  ===
  2368.  
  2369. Default key:   Alt-H
  2370. Description:   Disconnect by dropping DTR.
  2371.  
  2372. Examples:
  2373.  
  2374.      {hangup}
  2375.           Prompt user for disconnect.
  2376.  
  2377.      {hangup y}
  2378.           Disconnect without prompting.
  2379.  
  2380.  
  2381.  
  2382.                                     -46-
  2383.  
  2384. ===  HELP  ===
  2385.  
  2386. Default key:   F1
  2387. Description:   Open Online Help window.
  2388.  
  2389. Examples:
  2390.  
  2391.      {help}
  2392.           Display key command help
  2393.  
  2394.      {help x}
  2395.           Display topic "TX"
  2396.  
  2397. Any single character may be specified.  {COMMO} will prefix it with a "T"
  2398. and search for the topic code.  You may create your own Online Help file. 
  2399. See "Modifying the Help File" in Part I (COMMO.DOC).
  2400.  
  2401.  
  2402. ===  HOLD  ===
  2403.  
  2404. Default key:   none
  2405. Description:   Hold until specified time of day (24 hour format).
  2406.  
  2407. Examples:
  2408.  
  2409.      {hold 3:30}
  2410.           Hold until 3:30 am.
  2411.  
  2412.      {hold 16:10}
  2413.           Hold until 4:10 pm.
  2414.  
  2415.      {hold 0:00}
  2416.           Hold until midnight.
  2417.  
  2418. NOTE:  Incoming characters displayed during a HOLD function are not seen by
  2419. subsequent SSLOok/CALOok/GOLOok/LOOKfor functions.
  2420.  
  2421.  
  2422. ===  IFCArrier  ===
  2423.  
  2424. Default key:   none
  2425. Description:   Test for presence of carrier detect signal.
  2426.  
  2427. General form:
  2428.  
  2429.      {IFCArrier true,false}
  2430.  
  2431.           true
  2432.                A label to GOTO or CALL if carrier is detected.
  2433.  
  2434.           false
  2435.                A label to GOTO or CALL if carrier is not detected.
  2436.  
  2437.  
  2438.  
  2439.                                     -47-
  2440.  
  2441. NOTE:  If a target label is omitted (null), control will pass to the next
  2442. function.
  2443.  
  2444. Switches:
  2445.  
  2446.      C1 or C
  2447.           A CALL is performed on the label.  When the CALLed routine
  2448.           RETUrns, execution will continue following the IFCArrier.
  2449.  
  2450.      C0
  2451.           A GOTO is performed (default).
  2452.  
  2453. Examples:
  2454.  
  2455.      {ifcarrier c10,c20}
  2456.           Using GOTO
  2457.  
  2458.      {ifcarrier-c c10,c20}
  2459.           Using CALL
  2460.  
  2461. TIP on using IFCArrier:
  2462.  
  2463.  *   When using a loop to wait for a change in carrier detect, you should
  2464.      include a short pause in the loop if you want characters to display. 
  2465.      The following sequence will display incoming characters while waiting
  2466.      for carrier detect to drop:
  2467.  
  2468.           ... {:cd1} {pause 1} {ifcarrier cd1} ...
  2469.  
  2470. See also NOCArrier.
  2471.  
  2472.  
  2473. ===  IFCOndition  ===
  2474.  
  2475. Default key:   none
  2476. Description:   Test for conditions set by other functions.
  2477.  
  2478. General form:
  2479.  
  2480.      {IFCOndition true,false}
  2481.  
  2482.           true
  2483.                A label to GOTO or CALL if the Condition Flag is true.
  2484.  
  2485.           false
  2486.                A label to GOTO or CALL if the Condition Flag is false.
  2487.  
  2488. NOTE:  If a target label is omitted (null), control will pass to the next
  2489. function.
  2490.  
  2491.  
  2492.  
  2493.                                     -48-
  2494.  
  2495. Numeric switches:
  2496.  
  2497.      no switches present
  2498.           Test the current state of the Condition Flag.
  2499.  
  2500.      E1 or E
  2501.           Test for numeric equality.  A numeric string contains only the
  2502.           digits 0-9 and is in the range 0 to 65535.
  2503.  
  2504.      L1 or L
  2505.           Numeric test -- if first COMPare argument is less than the
  2506.           second.
  2507.  
  2508.      G1 or G
  2509.           Numeric test -- if first COMPare argument is greater than the
  2510.           second.
  2511.  
  2512. Other switches:
  2513.  
  2514.      C1 or C
  2515.           A CALL is performed on the label.  When the CALLed routine
  2516.           RETUrns, execution will continue following the IFCOndition.
  2517.  
  2518.      C0
  2519.           A GOTO is performed (default).
  2520.  
  2521. Examples:
  2522.  
  2523.      {compare var1,message}
  2524.      {ifcondit match,nomatch}
  2525.           Compare and set Condition Flag.  GOTO "match" if the variable
  2526.           "var1" is set to "message," to "nomatch" if it is not.
  2527.  
  2528.      {compare value,200}
  2529.      {ifcon-GEC toobig,aok}
  2530.           Compare and set conditions.  CALL "toobig" if "value" is greater
  2531.           than or equal to 200, else CALL "aok."
  2532.  
  2533.      {instring zipcode,90}
  2534.      {ifcon yes,no}
  2535.           Test if "zipcode" contains the digits "90".  If "true" GOTO
  2536.           "yes", if "false" GOTO "no".
  2537.  
  2538. Switches may be used in any combination.  If any numeric switches are
  2539. present, the Condition Flag is not tested.
  2540.  
  2541. The difference between testing for string equality and numeric equality is
  2542. shown in this example:
  2543.  
  2544.      The strings "05" and "5" are different text strings, but are
  2545.      numerically equal.
  2546.  
  2547.  
  2548.  
  2549.                                     -49-
  2550.  
  2551. ===  IFERrorlevel  ===
  2552.  
  2553. Default key:   none
  2554. Description:   Test the Exit Code set by certain functions.
  2555.  
  2556. General form:
  2557.  
  2558.      {IFERrorlevel number,true,false}
  2559.  
  2560.           number
  2561.                A number from 0 to 255.  It will be compared to the last
  2562.                Exit Code that was set.
  2563.  
  2564.           true
  2565.                A label to GOTO or CALL if the Exit Code is greater than or
  2566.                equal to "number."
  2567.  
  2568.           false
  2569.                A label to GOTO or CALL if the Exit Code is less than
  2570.                "number."
  2571.  
  2572. NOTE:  If a target label is omitted (null), control will pass to the next
  2573. function.
  2574.  
  2575. Switches:
  2576.  
  2577.      C1 or C
  2578.           A CALL is performed on the label.  When the CALLed routine
  2579.           RETUrns, execution will continue following the IFERrorlevel.
  2580.  
  2581.      C0
  2582.           A GOTO is performed (default).
  2583.  
  2584. Examples:
  2585.  
  2586.      {iferror 1,abc,def}
  2587.           GOTO "abc" if Exit Code is greater than or equal to 1.  Else GOTO
  2588.           def.
  2589.  
  2590.      {ifer-c 2,gtr2}
  2591.           CALL "gtr2" if Exit Code is greater than or equal to 2  Else
  2592.           continue.
  2593.  
  2594. TIPS on using IFERrorlevel:
  2595.  
  2596.  *   The Exit Code is set by certain functions (e.g., EXECute-D, SHELl,
  2597.      RXMOdem, SXMOdem) and should normally be tested immediately following
  2598.      execution of those functions.
  2599.  
  2600.  *   EXECute without the "D" switch or Shell to DOS will normally set the
  2601.      Exit Code to 0.
  2602.  
  2603.  
  2604.  
  2605.                                     -50-
  2606.  
  2607.  *   Many programs return an Exit Code greater than 0 when the result is
  2608.      unsuccessful.  HS/Link, for example, will return an Exit Code of 1 or
  2609.      higher if the file transfer has failed.
  2610.  
  2611.  *   The value of the Exit Code is also stored in the string variable
  2612.      "_err" and may be tested with COMPare.
  2613.  
  2614.  
  2615. ===  IFEXist  ===
  2616.  
  2617. Default key:   none
  2618. Description:   Test for existence of a disk file or files.
  2619.  
  2620. General form:
  2621.  
  2622.      {IFEXist path\filename,true,false}
  2623.  
  2624.           path\filename
  2625.                A DOS path\filename.  If the path is omitted, the current
  2626.                directory will be used.  If wildcards are used the "true"
  2627.                condition will hold if any files match the specification.
  2628.  
  2629.           true
  2630.                A label to GOTO or CALL if the file exists.
  2631.  
  2632.           false
  2633.                A label to GOTO or CALL if no files match.
  2634.  
  2635. NOTE:  If a target label is omitted (null), control will pass to the next
  2636. function.
  2637.  
  2638. Switches:
  2639.  
  2640.      C1 or C
  2641.           A CALL is performed on the label.  When the CALLed routine
  2642.           RETUrns, execution will continue following the IFEXist.
  2643.  
  2644.      C0
  2645.           A GOTO is performed (default).
  2646.  
  2647. Examples:
  2648.  
  2649.      {ifex-c a:file.xyz,,m20}
  2650.           CALL "m20" if not found.
  2651.  
  2652.      {ifex c:\data\words.txt,345}
  2653.           GOTO "345" if found.
  2654.  
  2655.      {ifex c:\ul\*.rep,a01,a02}
  2656.           Using a wildcard.
  2657.  
  2658.  
  2659.  
  2660.                                     -51-
  2661.  
  2662. ===  INCRement  ===
  2663.  
  2664. Default key:   none
  2665. Description:   Add a number to a numeric variable.
  2666.  
  2667. Examples:
  2668.  
  2669.      {incr count}
  2670.           Add 1 to the variable "count".
  2671.  
  2672.      {incr oranges,1234}
  2673.           Add 1234 to "oranges".
  2674.  
  2675. The default for the second argument is 1.
  2676.  
  2677. If either argument or the result is out of range, then the variable will be
  2678. set to the string "ERROR".
  2679.  
  2680. If the variable is not numeric, the results will be unpredictable.
  2681.  
  2682. See also DECRement.
  2683.  
  2684.  
  2685. ===  INFOrm  ===
  2686.  
  2687. Default key:   none
  2688. Description:   Display an advisory message.
  2689.  
  2690. General form:
  2691.  
  2692.      {INFOrm string}
  2693.  
  2694.           string
  2695.                Message to be displayed.
  2696.  
  2697. Switches:
  2698.  
  2699.      Q1 or Q
  2700.           Query the user for a "Yes/No" response.  "Yes" will be the
  2701.           default if Enter is pressed.
  2702.  
  2703.           The Condition Flag will be set to "true" if the response is
  2704.           "yes".  It will be set to "false" if the response is "no".  Test
  2705.           with IFCOndition.
  2706.  
  2707.      Q0
  2708.           Query the user for a "Yes/No" response.  "No" will be the default
  2709.           if Enter is pressed.  The Condition Flag is set as above.
  2710.  
  2711.  
  2712.  
  2713.                                     -52-
  2714.  
  2715.      Dn
  2716.           Display the message for "n" seconds, then continue.  "n" may
  2717.           range from 1 to 999.  This switch is ignored if the "Q" switch is
  2718.           present.
  2719.  
  2720.      S1 or S
  2721.           An error sound will accompany the message (default).  The error
  2722.           sound is controlled with the "ers" item in the Setup File.
  2723.  
  2724.      S0
  2725.           No error sound will be made.
  2726.  
  2727. Examples:
  2728.  
  2729.      {inform Press a key to continue}
  2730.           Wait for Esc.
  2731.  
  2732.      {info-qs0 Overwrite the file?}
  2733.           Yes/No response, no error sound.
  2734.  
  2735.      {info-d3 Login now in progress}
  2736.           Display message for 3 seconds, then continue.
  2737.  
  2738. INFOrm will display a string in a pop-up box over the Terminal Screen. 
  2739. {COMMO} will normally wait for "Esc" to be pressed (switches can alter this
  2740. behavior).  The string length is limited by the width of the screen.
  2741.  
  2742. NOTE:  When the "Q" switch is used, Esc and Ctrl-Break will be ignored.
  2743.  
  2744. See also INPUt, GETString.
  2745.  
  2746.  
  2747. ===  INITmodem  ===
  2748.  
  2749. Default key:   Alt-O
  2750. Description:   Send Modem Initialization String.
  2751.  
  2752. Example:
  2753.  
  2754.      {init}
  2755.           No arguments
  2756.  
  2757.  
  2758. ===  INPUt  ===
  2759.  
  2760. Default key:   none
  2761. Description:   Input a string from the keyboard.
  2762.  
  2763. General form:
  2764.  
  2765.      {INPUt name,prompt}
  2766.  
  2767.  
  2768.  
  2769.                                     -53-
  2770.  
  2771.           name
  2772.                The name of a string variable.  The current value of this
  2773.                variable will appear in the input line.
  2774.  
  2775.           prompt
  2776.                A prompt string that will appear in the input window border.
  2777.  
  2778. Example:
  2779.  
  2780.      {input upfile,Enter a filename:}
  2781.           Input a string to the variable "upfile."
  2782.  
  2783. If 0 data characters are entered, the variable will be set to null.
  2784.  
  2785. NOTE:  If Esc is pressed, macro execution will be terminated unless an exit
  2786. label has been defined with SETEsc.
  2787.  
  2788. See also GETString, INFOrm.
  2789.  
  2790.  
  2791. ===  INSTring  ===
  2792.  
  2793. Default key:   none
  2794. Description:   Find a string within a string, return its position.
  2795.  
  2796. General form:
  2797.  
  2798.      {INSTring name,string}
  2799.  
  2800.           name
  2801.                The name of a variable (string to search in).
  2802.  
  2803.           string
  2804.                The string to search for.
  2805.  
  2806. Example:
  2807.  
  2808.      {inst line,abc}
  2809.           The variable "line" is searched for the string "abc".
  2810.  
  2811. INSTring will set the following:
  2812.  
  2813.      1)   The Condition Flag will be set to "true" if the string is found,
  2814.           to "false" if the string is not found.  Test with IFCOndition, no
  2815.           switches.
  2816.  
  2817.      2)   The starting position of the string will be returned in the
  2818.           built-in variable "_pos" (first character is "1").  "_pos" will
  2819.           be set to zero if the string is not found.
  2820.  
  2821.  
  2822.  
  2823.                                     -54-
  2824.  
  2825. ===  KEYStuff  ===
  2826.  
  2827. Default key:   none
  2828. Description:   Put key codes into the keyboard buffer.
  2829.  
  2830. Examples:
  2831.  
  2832.      {keys 1c0d}
  2833.           Put a carriage return into the keyboard buffer.
  2834.  
  2835.      {keys 1e41,6c00}
  2836.           Put an "A" in the keyboard buffer followed by Alt-F5.
  2837.  
  2838. This function is usually used prior to EXECuting programs, batch files or
  2839. DOS commands that require keys to be pressed.  It allows complete
  2840. automation without operator intervention.
  2841.  
  2842. TIPS on using KEYStuff:
  2843.  
  2844.  *   The key codes are given in hexadecimal (scan code/character code as
  2845.      received from the BIOS).  Press Alt-K in the Internal Editor to view
  2846.      any key code.
  2847.  
  2848.  *   One or more codes may be listed.  Do not insert extra spaces.
  2849.  
  2850.  *   Usually, when specifying an ASCII character, only the character code
  2851.      need be listed.  Thus the second example above could be written:  
  2852.  
  2853.           {keys 41,6c00}
  2854.  
  2855.  
  2856. ===  LENGth  ===
  2857.  
  2858. Default key:   none
  2859. Description:   Determine the length of a string.
  2860.  
  2861. Examples:
  2862.  
  2863.      {leng %line}
  2864.           Find the length of the string in the variable "line".
  2865.  
  2866.      {leng %line1%%line2}
  2867.           Find the combined length of "line1" and "line2".
  2868.  
  2869. The length will be returned in the built-in variable "_len".  If the string
  2870. is null, the length will be set to zero.
  2871.  
  2872.  
  2873. ===  LIGHts  ===
  2874.  
  2875. Default key:   none
  2876. Description:   Set Signal Lights toggle.
  2877.  
  2878.  
  2879.  
  2880.                                     -55-
  2881.  
  2882. Examples:
  2883.  
  2884.      {lights}
  2885.           Toggle Signal Lights on/off.
  2886.  
  2887.      {lights y}
  2888.           Turn on Signal Lights.
  2889.  
  2890.      {lights n}
  2891.           Turn off Signal Lights.
  2892.  
  2893.  
  2894. ===  LOCAlecho  ===
  2895.  
  2896. Default key:   none
  2897. Description:   Set Local Echo toggle.
  2898.  
  2899. Examples:
  2900.  
  2901.      {local}
  2902.           Toggle Local Echo on/off.
  2903.  
  2904.      {local y}
  2905.           Turn on Local Echo.
  2906.  
  2907.      {local n}
  2908.           Turn off Local Echo.
  2909.  
  2910.  
  2911. ===  LOOKfor  ===
  2912.  
  2913. Default key:   none
  2914. Description:   Look for strings in the modem input stream.
  2915.  
  2916. LOOKfor is used in conjunction with SSLOok, CALOok and GOLOok to scan for
  2917. as many as 16 strings at the same time.  When SSLOok, CALOok and GOLOok set
  2918. up additional strings to look for, the actual "looking" does not take place
  2919. until the LOOKfor executes.
  2920.  
  2921. Parameters controlling LOOKfor are set with the SETLook function and may be
  2922. changed at any time with another SETLook.  See the description of the
  2923. SETLook function for details.
  2924.  
  2925. Examples using LOOKfor only:
  2926.  
  2927.      {lookfor first name?}
  2928.           Look for the string "first name?"
  2929.  
  2930.      {look ^(COMMO^)}
  2931.           Look for the string "{COMMO}".
  2932.  
  2933.      When the string comes in, control will pass to the next function.
  2934.  
  2935.  
  2936.  
  2937.                                     -56-
  2938.  
  2939. Example construct using SSLOok/CALOok/GOLOok/LOOKfor:
  2940.  
  2941.                {setlook 60,hng,3,n|}
  2942.                {setv ss_r,|}
  2943.                  ...
  2944.      {:start}
  2945.                {golook label-a,target1}
  2946.                {calook start,label-b,target2}
  2947.                {sslook ss_r,target3}
  2948.                {golook ,target4}
  2949.                {lookfor target5} {send answer5}
  2950.                {goto label-c}
  2951.  
  2952.      {:label-a}     {hangup y} {goto cancel}
  2953.      {:label-b}     {send answer2} {call subr} {return}
  2954.      {:label-c}          ...
  2955.  
  2956.      In this example {COMMO} will look for five target strings.
  2957.  
  2958.      When a target specified in any of the CALOok, GOLOok or LOOKfor
  2959.      functions is received, the LOOKfor is cancelled.  It may be set up
  2960.      again by going to "start".
  2961.  
  2962.      When the target specified in the SSLOok is received, the string in the
  2963.      variable will be transmitted to the serial port.  The LOOKfor will
  2964.      continue to look for the same targets.
  2965.  
  2966.      The GOLOok function for target1 will GOTO "label-a" when the string
  2967.      comes in.  In the example control will pass to "cancel" (macro not
  2968.      shown).
  2969.  
  2970.      If target2 comes in, the CALOok function will set "start" as the
  2971.      return point and then CALL "label-b".  When this routine RETUrns,
  2972.      control returns to "start" and the five string LOOKfor will be set up
  2973.      again.
  2974.  
  2975.      If target3 is received, the string in the variable "ss_r" will be sent
  2976.      (in this case, a carriage return) and looking will continue.
  2977.  
  2978.      The GOLOok for target4 has a null label and control will pass to the
  2979.      function following the LOOKfor if that string comes in.  The "," must
  2980.      be present.
  2981.  
  2982.      If target5 comes in, control will pass to the function following the
  2983.      LOOKfor.
  2984.  
  2985. TIPS on creating LOOKfor strings:
  2986.  
  2987.  *   There should be just one space following the LOOKfor function name. 
  2988.      Any spaces beyond this point are part of the string.  The string ends
  2989.      at the right curly brace.
  2990.  
  2991.  
  2992.  
  2993.                                     -57-
  2994.  
  2995.  *   SSLOok/CALOok/GOLOok/Auto Receive strings begin immediately after the
  2996.      comma delimiter.  There should be no spaces unless they are part of
  2997.      the string.
  2998.  
  2999.  *   Strings may be up to 32 characters in length (control characters like
  3000.      "^M" count as one).  Upper/lower case is ignored.
  3001.  
  3002.  *   ANSI control sequences are filtered if ANSI or VT102 emulation is
  3003.      enabled.
  3004.  
  3005.  *   Short strings may not be unique enough, long strings may not match if
  3006.      there is line noise.
  3007.  
  3008.  *   Rules for representing special characters in
  3009.      SSLOok/CALOok/GOLOok/LOOKfor/Auto Receive strings are given in
  3010.      Appendix D.
  3011.  
  3012.  *   SSLOok, CALOok and GOLOok functions should immediately precede a
  3013.      LOOKfor (no string compares actually occur until the LOOKfor
  3014.      executes).  Up to 15 SSLOok/CALOok/GOLOok strings may be used in
  3015.      addition to the LOOKfor (up to 16 strings total).
  3016.  
  3017.  *   Use FILTER Capture Mode to determine the prompt to look for.
  3018.  
  3019.  *   If two or more strings cause a match at the same time, the LAST such
  3020.      string listed is the one acted upon (for example, if "abcdef" and
  3021.      "def" are listed and the string "abcdef" comes in).
  3022.  
  3023.  *   When an SSLOok causes a string to be sent, the LOOKfor timeout timer
  3024.      is restarted.
  3025.  
  3026. See also SSLOok, CALOok, GOLOok, SETLook.
  3027.  
  3028.  
  3029. ===  MACRo  ===
  3030.  
  3031. Default key:   Alt-M
  3032. Description:   Open Macro File window.
  3033.  
  3034. Examples:
  3035.  
  3036.      {macro}
  3037.           Open window at current position.
  3038.  
  3039.      {macro menu1}
  3040.           Open window at "menu1".
  3041.  
  3042. A string argument may be included to facilitate the creation of menus
  3043. within the Macro File.  The first occurrence of the argument string will
  3044. become the top line of the display when the window is opened.
  3045.  
  3046. The Selector Bar will be positioned on the first screen line that has a
  3047. left curly brace, if any.
  3048.  
  3049.  
  3050.  
  3051.                                     -58-
  3052.  
  3053.  
  3054. Here is an example of how to structure a menu using MACRo:
  3055.  
  3056.                                    | (this is past col. 80)
  3057.                                    | menu111
  3058.           Name of Menu             |
  3059.                                    |
  3060.                                    |
  3061.           Selection 1              | {goto sel1}
  3062.           Selection 2              | {goto sel2}
  3063.           Selection 3              | {goto sel3}
  3064.  
  3065.      {:af1} {macro menu111}
  3066.      {:sel1} ...
  3067.      {:sel2} ...
  3068.      {:sel3} ...
  3069.  
  3070. The upper line with "menu111" will be the top line of the screen.  Pressing
  3071. Alt-F1 will bring up the menu with the Selector Bar on Selection 1.  Macros
  3072. at "sel1", "sel2" and "sel3" will process the respective selections.
  3073.  
  3074. Note that the macro at "af1" to invoke the menu must be below the line with
  3075. "menu111" since it contains the string and would be found in the search. 
  3076. Also the macro at "af1" must be in the same Macro File (resident or
  3077. auxiliary) as the menu itself.
  3078.  
  3079. TIPS on using MACRo:
  3080.  
  3081.  *   The MACRo function always terminates the macro that is currently
  3082.      executing.
  3083.  
  3084.  *   Menu creation using MACRo cannot be used when the Macro File is
  3085.      compiled.  Use MENU instead.
  3086.  
  3087. See also MENU.
  3088.  
  3089.  
  3090. ===  MARK  ===
  3091.  
  3092. Default key:   none
  3093. Description:   Mark Dialing Directory entries for dialing.
  3094.  
  3095. Example:
  3096.  
  3097.      {mark joes-bbs,file-city}
  3098.           Mark entries for dialing.
  3099.  
  3100. Dialing Strings may be separated by spaces or commas.
  3101.  
  3102. {COMMO} will search the Dialing Directory for each string and mark the
  3103. first entry where a match is found.  Case is ignored.
  3104.  
  3105.  
  3106.  
  3107.                                     -59-
  3108.  
  3109. The strings may consist of any part of a Dialing Directory entry line
  3110. (including strings contained within curly braces), but must NOT contain any
  3111. spaces, commas or curly braces.
  3112.  
  3113. See also DIAL, UNMArk.
  3114.  
  3115.  
  3116. ===  MENU  ===
  3117.  
  3118. Default key:   none
  3119. Description:   Create a pop-up macro menu.
  3120.  
  3121. General form:
  3122.  
  3123.      {SETV _menu1,text1}
  3124.      {SETV _menu2,text2}
  3125.           ...
  3126.      {SETV _menuN,textN}
  3127.  
  3128.           text1
  3129.                Text to be placed on first information line in the pop-up
  3130.                window (third line down, counting from the top border).
  3131.  
  3132.                NOTE:  These text strings are simply information and have no
  3133.                effect on which macros will be executed.
  3134.  
  3135.           text2
  3136.                Text to be placed on second information line.
  3137.           ...
  3138.  
  3139.           textN
  3140.                Text to be placed on Nth information line.
  3141.  
  3142.      {SETV _mlabel,label1,label2,...}
  3143.  
  3144.           NOTE:  Labels are positional and may be omitted using null
  3145.           arguments for keys that aren't used.  See example 2 below.
  3146.  
  3147.           label1
  3148.                Label to GOTO if F1, A or 1 is pressed.  Any of the three
  3149.                keys will activate the macro at the first label.
  3150.  
  3151.           label2
  3152.                Label to GOTO if F2, B or 2 is pressed.
  3153.  
  3154.           ... etc.
  3155.  
  3156.      {SETV _menter,label}
  3157.  
  3158.           label
  3159.                Label to GOTO if Enter is pressed.
  3160.  
  3161.  
  3162.  
  3163.                                     -60-
  3164.  
  3165.      {SETV _mcolor,text,border}
  3166.  
  3167.           text
  3168.                Colors for the text area of the pop-up window.
  3169.  
  3170.           border
  3171.                Colors for the window border.
  3172.  
  3173.           NOTE:  The attributes are specified in the same manner as the
  3174.           colors in the Setup File (press F7 in the Internal Editor to
  3175.           display the Color Chart).  
  3176.  
  3177.      {MENU height,width,string}
  3178.  
  3179.           height
  3180.                Total number of rows from top to bottom of pop-up window,
  3181.                including borders.  Minimum is 5.
  3182.  
  3183.           width
  3184.                Total number of columns from left side to right side,
  3185.                including borders.  Minimum is 23.
  3186.  
  3187.           string
  3188.                Title string that will appear in the top border.
  3189.  
  3190. Example 1:
  3191.  
  3192.           {setv _menu1, F1  Call computer at work}
  3193.           {setv _menu3, F2  Call E-mail service}
  3194.           {setv _menu5, F3  Run offline mail reader}
  3195.           {setv _mlabel,work,mail,reader}
  3196.           {setv _mcolor,17,30}
  3197.           {menu 9,32,Daily Activity Menu} {}
  3198.  
  3199.      {:work}    ... macro to call work computer.
  3200.      {:mail}    ... macro to call E-mail service.
  3201.      {:reader}  ... macro to run offline reader.
  3202.  
  3203.      This menu specifies that function keys be pressed to activate the
  3204.      macros.  You could also press A or 1 instead of F1, B or 2 instead of
  3205.      F2, etc.  The macros may be as simple or as complex as desired to
  3206.      complete the task.
  3207.  
  3208. Example 2:
  3209.  
  3210.           {setv _menu1, [D]  Dialing Directory}
  3211.           {setv _menu4, [E]  Edit a file}
  3212.           {setv _menu2, [M]  Macro File}
  3213.           {setv _menu3, [Enter]  Shell to DOS (with swap)}
  3214.           {setv _mlabel,,,,ddir,edit,,,,,,,,mfile}
  3215.           {setv _menter,dos}
  3216.           {setv _mcolor,03,47}
  3217.           {menu 8,39,Common Commands} {}
  3218.  
  3219.  
  3220.  
  3221.                                     -61-
  3222.  
  3223.  
  3224.      {:ddir}  {dial} {}
  3225.      {:edit}  {input efile,Filename to Edit}
  3226.               {edit %efile} {}
  3227.      {:mfile} {macro}
  3228.      {:dos}   {shell-s} {}
  3229.  
  3230.      This menu uses "mnemonic" key labeling -- D for (D)ialing Directory,
  3231.      etc.  Notice that there are three empty positions in the "_mlabel"
  3232.      list prior to "ddir" and "edit".  These correspond to A, B and C,
  3233.      which are not used in this menu.  Then there are empty positions up to
  3234.      "mfile" (M).
  3235.  
  3236. TIPS on using MENU:
  3237.  
  3238.  *   The dimensions of the window are limited by the current size of the
  3239.      Terminal Screen.
  3240.  
  3241.  *   The total number of displayable lines is "height" less 4.  Lines in
  3242.      the window for which no "_menux" variable has been defined will be
  3243.      left blank.
  3244.  
  3245.  *   Up to 26 labels can be specified in each menu.  These correspond to
  3246.      pressing the letters A through Z.  The first 12 labels also correspond
  3247.      to pressing F1 through F12, while the first 9 labels correspond to
  3248.      pressing 1 through 9.
  3249.  
  3250.  *   The built-in variable "_msn" is set to the number of the menu
  3251.      selection when a menu key is pressed: 0 for Enter, 1 to 26 for A to Z,
  3252.      etc.
  3253.  
  3254.  *   All variables used to create the menu are automatically deleted from
  3255.      Variable Space after the menu is displayed. 
  3256.  
  3257.  *   The last colors used to display a menu will persist until they are
  3258.      changed (by setting the "_mcolor" variable).
  3259.  
  3260.  *   If Esc is pressed to exit the menu, macro execution continues in
  3261.      sequence following the MENU function.
  3262.  
  3263. See also MACRo.
  3264.  
  3265.  
  3266. ===  MULTiply  ===
  3267.  
  3268. Default key:   none
  3269. Description:   Multiply a numeric variable by a number.
  3270.  
  3271. Example:
  3272.  
  3273.      {mult money,10}
  3274.           Multiply "money" by 10.
  3275.  
  3276.  
  3277.  
  3278.                                     -62-
  3279.  
  3280. The multiplier (second argument) is limited to 65535 (default is 1).
  3281.  
  3282. If either argument or the result is out of range, then the variable will be
  3283. set to the string "ERROR".
  3284.  
  3285. If the variable is not numeric, the results will be unpredictable.
  3286.  
  3287.  
  3288. ===  NOCArrier  ===
  3289.  
  3290. Default key:   none
  3291. Description:   Sets/resets a macro to execute when carrier detect is lost.
  3292.  
  3293. Examples:
  3294.  
  3295.      {noca carrlost}
  3296.           GOTO the label "carrlost" when the carrier detect signal drops.
  3297.  
  3298.      {noca}
  3299.           Cancel the carrier lost label.
  3300.  
  3301. This function is used to modify the label defined by the "ncr" item in the
  3302. Setup File.  See "Alt-G  Edit Setup File" in Part I (COMMO.DOC) for details
  3303. and restrictions on this feature.
  3304.  
  3305.  
  3306. ===  NOOP  ===
  3307.  
  3308. Default key:   none
  3309. Description:   No-op function, does nothing
  3310.  
  3311. Example:
  3312.  
  3313.      {noop}
  3314.           No arguments.
  3315.  
  3316.  
  3317. ===  OFFLog  ===
  3318.  
  3319. Default key:   none
  3320. Description:   Make an {Off} entry in the Usage Log.
  3321.  
  3322. Example:
  3323.  
  3324.      {offlog}
  3325.           No arguments.
  3326.  
  3327. This function is useful on systems that do not support the carrier detect
  3328. signal.
  3329.  
  3330. NOTE:  An {Off} entry will be made only if an {On} entry was made at
  3331. connection time.
  3332.  
  3333.  
  3334.  
  3335.                                     -63-
  3336.  
  3337.  
  3338. ===  PARMs  ===
  3339.  
  3340. Default key:   Alt-P
  3341. Description:   Set Current Terminal Parameters
  3342.  
  3343. General form:
  3344.  
  3345.      {PARMs speed,format,comport,terminal-type,delay}
  3346.  
  3347.           speed
  3348.                The bps rate: 2400, 38400, etc.
  3349.  
  3350.           format
  3351.                The data format: 8n1, 7e1, etc.
  3352.  
  3353.           comport
  3354.                The serial port number: 1, 2, 3 or 4.
  3355.  
  3356.           terminal
  3357.                The terminal-type: A, V or T.
  3358.  
  3359.           delay
  3360.                The inter-character delay factor: 0-999.
  3361.  
  3362. Examples:
  3363.  
  3364.      {parms 38400,8,1,,20}
  3365.           Set 38400 bps, 8n1, Com1, delay=20.
  3366.  
  3367.      {parms ,,4,V}
  3368.           Set Com4 VT102.
  3369.  
  3370.      {parms 19200,7o1}
  3371.           Set 19200 bps, 7o1.
  3372.  
  3373. IMPORTANT!  Omitted parameters are not changed.
  3374.  
  3375. This function will change the current parameters, but has no effect on the
  3376. parameters set when dialing.
  3377.  
  3378. See also DPARms.
  3379.  
  3380.  
  3381. ===  PASSword  ===
  3382.  
  3383. Default key:   Alt-W
  3384. Description:   Send current password.
  3385.  
  3386. Example:
  3387.  
  3388.      {password}
  3389.           No arguments.
  3390.  
  3391.  
  3392.  
  3393.                                     -64-
  3394.  
  3395.  
  3396. The current password is obtained from the Dialing Directory entry whenever
  3397. a number is dialed.  If no password is specified no characters will be
  3398. sent.
  3399.  
  3400.  
  3401. ===  PAUSe  ===
  3402.  
  3403. Default key:   none
  3404. Description:   Pause for a time interval.
  3405.  
  3406. Switches:
  3407.  
  3408.      T or T1
  3409.           Time is specified in DOS clock ticks (there are 18 clock ticks
  3410.           per second).
  3411.  
  3412.      T0
  3413.           Time is specified in seconds (default).
  3414.  
  3415. Examples:
  3416.  
  3417.      {pause 25}
  3418.           Pause for 25 seconds.
  3419.  
  3420.      {pause-t 9}
  3421.           Pause for 9 clock ticks (one half second).
  3422.  
  3423. NOTE:  Incoming characters displayed during a PAUSe function are not seen
  3424. by subsequent SSLOok/CALOok/GOLOok/LOOKfor functions.
  3425.  
  3426.  
  3427. ===  POPStack  ===
  3428.  
  3429. Default key:   none
  3430. Description:   Pop an element from the macro stack.
  3431.  
  3432. Switches:
  3433.  
  3434.      C1 or C
  3435.           Clear all elements from the stack.
  3436.  
  3437.      C0
  3438.           Pop the top element (default).
  3439.  
  3440. Examples:
  3441.  
  3442.      {pops}
  3443.           Pop the top element.
  3444.  
  3445.      {pops-c}
  3446.           Clear the stack.
  3447.  
  3448.  
  3449.  
  3450.                                     -65-
  3451.  
  3452. POPStack throws away the top element on the macro stack.  This element
  3453. would have been used by the next RETUrn function.
  3454.  
  3455. See also CALL, RETUrn, PUSHstack.
  3456.  
  3457.  
  3458. ===  PRINtlog  ===
  3459.  
  3460. Default key:   Alt-2
  3461. Description:   Set Print Log toggle.
  3462.  
  3463. Examples:
  3464.  
  3465.      {print}
  3466.           Toggle Print Log on/off.
  3467.  
  3468.      {print y}
  3469.           Turn on Print Log.
  3470.  
  3471.      {print n}
  3472.           Turn off Print Log.
  3473.  
  3474.  
  3475. ===  PUSHstack  ===
  3476.  
  3477. Default key:   none
  3478. Description:   Push a return point onto the macro stack.
  3479.  
  3480. Examples:
  3481.  
  3482.      {push}
  3483.           Push the current location.
  3484.  
  3485.      {push abc}
  3486.           Push the location "abc".
  3487.  
  3488. When there are no arguments, the location pushed is the location of the
  3489. PUSHstack function itself (i.e., it will be executed again when a RETUrn is
  3490. encountered).
  3491.  
  3492. PUSHstack will push a return point onto the macro stack without
  3493. transferring control to the location (control continues in sequence).  A
  3494. subsequent RETUrn will transfer control to the location that was pushed.
  3495.  
  3496. POPStack will remove the top stack element without transferring control to
  3497. it (control continues in sequence).
  3498.  
  3499. TIPS on using PUSHstack:
  3500.  
  3501.  *   The return point will include the name of the current auxiliary file
  3502.      if the PUSHstack function is located in the auxiliary.
  3503.  
  3504.  
  3505.  
  3506.                                     -66-
  3507.  
  3508.  *   PUSHstack cannot save a location that is in a Macro File that is not
  3509.      currently loaded.
  3510.  
  3511. See also CALL, RETUrn, POPStack.
  3512.  
  3513.  
  3514. ===  RCLOse  ===
  3515.  
  3516. Default key:   none
  3517. Description:   Close the read file.
  3518.  
  3519. Example:
  3520.  
  3521.      {rclose}
  3522.           No arguments.
  3523.  
  3524. NOTE:  The read file will be closed automatically in the following
  3525. situations:
  3526.  
  3527.      1)   When an attempt is made to read past the end of the file.
  3528.      2)   When the macro terminates (STOP, EXIT, etc.).
  3529.  
  3530. See also ROPEn, READ.
  3531.  
  3532.  
  3533. ===  READ  ===
  3534.  
  3535. Default key:   none
  3536. Description:   Read a line from the read file to a variable.
  3537.  
  3538. Example:
  3539.  
  3540.      {read nextline}
  3541.           Read the next line in the file into the variable "nextline."
  3542.  
  3543. TIPS on reading files:
  3544.  
  3545.  *   A file must be open for reading or a Macro Error will result.
  3546.  
  3547.  *   Each READ will get the next line in the file (lines are terminated by
  3548.      carriage return and linefeed).
  3549.  
  3550.  *   When an attempt is made to read past the end of file, control will
  3551.      GOTO the label specified in the ROPEn.  If no label was specified or
  3552.      if the label was invalid, control will continue in sequence.  In
  3553.      either case the file is automatically closed and the variable is set
  3554.      to null.
  3555.  
  3556.  *   READ will set the Exit Code to 0 unless the end of file was
  3557.      encountered, in which case it will be set to 1.  The Exit Code is
  3558.      stored in the built-in variable "_err" and can be tested with the
  3559.      IFERrorlevel function.
  3560.  
  3561.  
  3562.  
  3563.                                     -67-
  3564.  
  3565.  *   ALL control characters (below ASCII 28) will be discarded, including
  3566.      the carriage return/linefeed that terminates the line.
  3567.  
  3568.  *   Lines longer than 240 characters will be truncated to a length of 240.
  3569.  
  3570. See also ROPEn, RCLOse
  3571.  
  3572.  
  3573. ===  RETUrn  ===
  3574.  
  3575. Default key:   none
  3576. Description:   Return from a CALLed macro.
  3577.  
  3578. Example:
  3579.  
  3580.      {return}
  3581.           No arguments.
  3582.  
  3583. This function will return control to the last location pushed onto the
  3584. macro stack (by CALL, PUSHstack, etc.).  The location may reside in a Macro
  3585. File that is not currently loaded (loading will occur automatically).
  3586.  
  3587. TIPS on using RETUrn:
  3588.  
  3589.  *   If a RETUrn is encountered and no elements remain on the macro stack,
  3590.      a STOP will occur.  This is useful in macros that are CALLed and also
  3591.      used standalone (such as protocol file transfer macros).
  3592.  
  3593.  *   If the macro filename popped from the macro stack is the same as the
  3594.      current auxiliary file, no load will occur.
  3595.  
  3596. See also CALL, CALOok, DIAL, PUSHstack, POPStack.
  3597.  
  3598.  
  3599. ===  ROPEn  ===
  3600.  
  3601. Default key:   none
  3602. Description:   Open a file for reading.
  3603.  
  3604. General Form:
  3605.  
  3606.      {ROPEn path\filename,label}
  3607.  
  3608.           path\filename
  3609.                The path\filename of the file to open.
  3610.  
  3611.           label
  3612.                A label to GOTO when a READ is attempted at the end of the
  3613.                file.
  3614.  
  3615.                IMPORTANT!  If the READ is in a CALLed subroutine, be sure
  3616.                to execute a RETUrn or POPS at the label.
  3617.  
  3618.  
  3619.  
  3620.                                     -68-
  3621.  
  3622. Example:
  3623.  
  3624.      {ropen c:\bbs\file.txt,nomore}
  3625.           Open the file and set the label "nomore" to GOTO when the end of
  3626.           the file is reached.
  3627.  
  3628. TIPS on using ROPEn:
  3629.  
  3630.  *   Only one file may be opened for reading (and one for writing).
  3631.  
  3632.  *   The file will be automatically closed when the end of the file is
  3633.      encountered during a READ (whether or not a label is specified).  An
  3634.      RCLOse is not needed in this situation.
  3635.  
  3636. See also READ, RCLOse.
  3637.  
  3638.  
  3639. ===  RTRAn  ===
  3640.  
  3641. Default key:   none
  3642. Description:   Maintain Receive Translate Table.
  3643.  
  3644. Switches:
  3645.  
  3646.      I1 or I
  3647.           Initialize Receive Translate Table to default values (consecutive
  3648.           0 to 255).
  3649.  
  3650.      I0
  3651.           Do not initialize (default).
  3652.  
  3653. Examples:
  3654.  
  3655.      {rtran y}
  3656.           Turn receive translation ON.
  3657.  
  3658.      {rtran-i n}
  3659.           Initialize the table and turn it OFF.
  3660.  
  3661.      {rtran 26,0}
  3662.           Change ASCII 26 to null (ASCII 0, which will not display).
  3663.  
  3664.      {rtran-i y,#8,224,240}
  3665.           Initialize the table, turn receive translation ON, change ASCII
  3666.           224 to 240, 225 to 241, ..., 231 to 247.  
  3667.  
  3668.      {rtran}
  3669.           Toggle receive translation ON/OFF.
  3670.  
  3671.      {rtran #13,65,78,#13,78,65,#13,97,110,#13,110,97}
  3672.           ROT13 translation.  This exchanges each letter in the first half
  3673.           of the alphabet with the corresponding letter from the second
  3674.           half (and vice-versa).
  3675.  
  3676.  
  3677.  
  3678.                                     -69-
  3679.  
  3680.  
  3681. Rules for RTRAn arguments are the same as for the {rtr=} item in the Setup
  3682. File.  In addition, "n" may be used as the first argument to turn receive
  3683. translation OFF at any time.
  3684.  
  3685. See "Edit Setup File" in Part I (COMMO.DOC) for details and more examples.
  3686.  
  3687. TIPS on using RTRAn:
  3688.  
  3689.  *   Some control characters are unaffected by translation when certain
  3690.      features are enabled.  Examples:  XON (17) and XOFF (19) are not
  3691.      translated when Software Flow Control is on.  ENQ (5) is not
  3692.      translated when ENQ/ACK emulation is on.
  3693.  
  3694.  *   When the Capture Mode is set to RAW, data will be captured prior to
  3695.      translation.  FILTER and SCREEN captures will contain translated data.
  3696.  
  3697.  *   LOOKfor will always see translated data.  Use FILTER Capture Mode to
  3698.      see what LOOKfor sees.
  3699.  
  3700.  *   In GETString, incoming data (as well as locally typed characters) will
  3701.      be translated with the Receive Translate Table (it may be necessary to
  3702.      turn receive translation off during certain GETString functions).
  3703.  
  3704. See also STRAn.
  3705.  
  3706.  
  3707. ===  RXMOdem  ===
  3708.  
  3709. Default key:   none
  3710. Description:   Receive a file using the Xmodem protocol.
  3711.  
  3712. Switches:
  3713.  
  3714.      See RYMOdem (switches are the same).
  3715.  
  3716. Example:
  3717.  
  3718.      {rxmo-ya c:\dl\file.zip}
  3719.           Receive "file.zip", overwrite the file if it exists, sound the
  3720.           alarm.
  3721.  
  3722. Only one file may be received with each RXMOdem function (the file must be
  3723. explicitly named, but need not be given the same name as on the remote
  3724. system).
  3725.  
  3726. See RYMOdem for tips that apply to both RXMOdem and RYMOdem.
  3727.  
  3728.  
  3729. ===  RYMOdem  ===
  3730.  
  3731. Default key:   none
  3732. Description:   Receive files using the Ymodem Batch protocol.
  3733.  
  3734.  
  3735.  
  3736.                                     -70-
  3737.  
  3738.  
  3739. Switches:
  3740.  
  3741.      NOTE: N, D, A and W switches are the same as for RZMOdem.
  3742.  
  3743.      C1 or C
  3744.           Use CRC error correction (default).
  3745.  
  3746.      C0
  3747.           Use Checksum error correction.
  3748.  
  3749.      G1 or G
  3750.           Use streaming (fast) transfer method.
  3751.  
  3752.           IMPORTANT!  Use only with error-correcting modems or direct
  3753.           connections between computers.
  3754.  
  3755.      G0
  3756.           Use normal (error-correcting) transfer method (default).
  3757.  
  3758.      Y1 or Y
  3759.           Overwrite an existing file when a received file has the same name
  3760.           (the existing file will be erased).
  3761.  
  3762.      Y0
  3763.           Cancel the transfer if a received file has the same name as an
  3764.           existing file (default).
  3765.  
  3766. Examples:
  3767.  
  3768.      {rymo-ya %dldir}
  3769.           Receive files into the download directory, overwrite a file if it
  3770.           exists, sound the alarm.
  3771.  
  3772.      {rymo-gw3}
  3773.           Receive files using the "G" method into the current directory. 
  3774.           Wait 3 seconds before returning to the Terminal Screen.
  3775.  
  3776. Ymodem is a "batch" protocol that will receive multiple files.  Filenames
  3777. are transmitted by the sender and are used to name files at the receiving
  3778. end.  A filename "collision" will cause the transfer to cancel unless the
  3779. "Y" switch is used.  File sizes are also transmitted by the sender and are
  3780. used to truncate the file to the proper size.
  3781.  
  3782. TIPS on using RYMOdem and RXMOdem:
  3783.  
  3784.  *   The "G" method is specified by the receiver.  Be sure that the sender
  3785.      allows it before starting.
  3786.  
  3787.  *   Block size is established by the sender and may be changed on a block-
  3788.      by-block basis.
  3789.  
  3790.  *   Some conditions that will cancel a transfer:
  3791.  
  3792.  
  3793.  
  3794.                                     -71-
  3795.  
  3796.        1)  10 consecutive errors.
  3797.        2)  Any error when "G" method is used.
  3798.        3)  File exists and the "Y" switch is not present.
  3799.        4)  The sender has transmitted CAN (^X) characters.
  3800.        5)  Loss of carrier.
  3801.  
  3802.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  3803.      and will also be stored in the variable "_err".  0 means all files
  3804.      were transferred successfully.  1 means one or more files in the batch
  3805.      were not completed.
  3806.  
  3807.  *   If the Usage Log is enabled, an entry will be made after each file is
  3808.      transferred (or if a transfer is cancelled).
  3809.  
  3810.  
  3811. ===  RZMOdem  ===
  3812.  
  3813. Default key:   none
  3814. Description:   Receive a file using the Zmodem protocol.
  3815.  
  3816. Switches:
  3817.  
  3818.      R1 or R
  3819.           Resume like-named files.  If the incoming file is longer, the
  3820.           transfer will resume at the end of the existing file.  No check
  3821.           is made to determine if the common portion of the file is
  3822.           identical.
  3823.  
  3824.      N1 or N
  3825.           Rename incoming files if like-named files exists.  A letter "A"
  3826.           through "Z" will be used in place of the last character of
  3827.           "filename.ext".
  3828.  
  3829.      Y1 or Y
  3830.           Overwrite like-named files.  The existing file will be deleted at
  3831.           the start of the transfer.
  3832.  
  3833.      D1 or D
  3834.           Cancel transfer if carrier detect is lost (default).
  3835.  
  3836.           NOTE:  If carrier detect is off when the transfer is started,
  3837.           this switch will behave as if "D0" had been set.
  3838.  
  3839.      D0
  3840.           Ignore state of carrier detect.
  3841.  
  3842.      A1 or A
  3843.           Sound the alarm at the end of the transfer.
  3844.  
  3845.      A0
  3846.           Do not sound the alarm (default).
  3847.  
  3848.  
  3849.  
  3850.                                     -72-
  3851.  
  3852.      W
  3853.           Wait for a keypress at end of transfer.
  3854.  
  3855.      Wn
  3856.           Wait for "n" seconds, "n" may range from 0 to 999.  Press a key
  3857.           to cancel the wait.
  3858.  
  3859.           Note:  Default (no "W" switch) is no wait.
  3860.  
  3861. The "R", "N" and "Y" switches are mutually exclusive (use only one).
  3862.  
  3863. Example:
  3864.  
  3865.      {rzmo-ra %dldir}
  3866.           Receive files into the download directory, resume partial files,
  3867.           sound the alarm.
  3868.  
  3869. TIPS on using RZMOdem:
  3870.  
  3871.  *   The sender may also request that the file be "resumed."  The "N" and
  3872.      "Y" switches will override this request.
  3873.  
  3874.  *   If a like-named file exists in the download directory and no action is
  3875.      specified, the file will be "skipped."
  3876.  
  3877.  *   Some conditions that will cancel a transfer:
  3878.        1)  20 consecutive errors.
  3879.        2)  The sender has cancelled.
  3880.        3)  Unable to open a file.
  3881.        4)  Disk is full.
  3882.        5)  Loss of carrier.
  3883.  
  3884.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  3885.      and will also be stored in the variable "_err".  0 means all files
  3886.      were transferred successfully.  1 means one or more files in the batch
  3887.      were not completed.
  3888.  
  3889.  *   If the Usage Log is enabled, an entry will be made after each file is
  3890.      transferred (or if a transfer is cancelled).
  3891.  
  3892.  
  3893. ===  SCREen  ===
  3894.  
  3895. Default key:   Alt-I
  3896. Description:   Screen Image Save.
  3897.  
  3898. Examples:
  3899.  
  3900.      {screen}
  3901.           Open Screen Image Save window.
  3902.  
  3903.      {screen y}
  3904.           Append screen image to current file.
  3905.  
  3906.  
  3907.  
  3908.                                     -73-
  3909.  
  3910.  
  3911.      {screen y,commo.scr}
  3912.           Append screen image to indicated file. (and change current
  3913.           path\filename).
  3914.  
  3915.      {screen n,c:\file.xyz}
  3916.           Change current screen image path\filename (don't save screen to
  3917.           file).
  3918.  
  3919.  
  3920. ===  SCROllback  ===
  3921.  
  3922. Default key:   Alt-K
  3923. Description:   Display Scrollback Buffer
  3924.  
  3925. Example:
  3926.  
  3927.      {scroll}
  3928.           No arguments.
  3929.  
  3930.  
  3931. ===  SEND  ===
  3932.  
  3933. Default key:   none
  3934. Description:   Send a string to the modem (serial port).
  3935.  
  3936. Switches:
  3937.  
  3938.      N1 or N
  3939.           Do NOT convert control characters.
  3940.  
  3941.      N0
  3942.           Convert control characters as described in Appendix D (default).
  3943.  
  3944. Examples:
  3945.  
  3946.      {send Firstname|~~Lastname|~~%_pass%|}
  3947.           Send first and last names with carriage returns and 1 second
  3948.           delays, then send the current password and a <cr>.
  3949.  
  3950.      {send ^[^[}
  3951.           Send two <esc> characters.
  3952.  
  3953.      {send  }
  3954.           Send a space (there must be two spaces, the first is the
  3955.           separator).
  3956.  
  3957.      {send %line}
  3958.           Send the string in the variable "line".
  3959.  
  3960.      {send-n ^A|~}
  3961.           Send the characters as written.  Do not convert the special
  3962.           characters.
  3963.  
  3964.  
  3965.  
  3966.                                     -74-
  3967.  
  3968.  
  3969. Normally, conversion will occur as shown in Appendix D.  With the "N"
  3970. switch, all characters will be sent exactly as written.
  3971.  
  3972.  
  3973. ===  SETDial  ===
  3974.  
  3975. Default key:   none
  3976. Description:   Set parameters for dialing.
  3977.  
  3978. Examples:
  3979.  
  3980.      {setdial 60,15}
  3981.           Set the dialing cycle timer to 60 seconds and the Inter-dial
  3982.           Delay to 15 seconds.
  3983.  
  3984.      {setd ,3}
  3985.           Change only the Inter-dial Delay timer.
  3986.  
  3987. The first argument is the dialing cycle time limit.  This is the number of
  3988. seconds {COMMO} will allow after sending the dial command to the modem. 
  3989. Range is from 1 to 999.
  3990.  
  3991. The second argument is the inter-dial delay timer.  This is the number of
  3992. seconds before {COMMO} dials the next number.  Range is from 1 to 999.
  3993.  
  3994. NOTE:  Changes to dialing parameters override the Setup File values and
  3995. remain in effect until {COMMO} is exited.
  3996.  
  3997. See also DIAL.
  3998.  
  3999.  
  4000. ===  SETEsc  ===
  4001.  
  4002. Default key:   none
  4003. Description:   Define a label to GOTO when Esc is pressed.
  4004.  
  4005. General form:
  4006.  
  4007.      {setesc label}
  4008.  
  4009.           label
  4010.                A label to GOTO when the user presses Esc during macro
  4011.                execution.
  4012.  
  4013.  
  4014.  
  4015.                                     -75-
  4016.  
  4017. Switches:
  4018.  
  4019.      P1 or P
  4020.           The user will be prompted with, "A macro is running.  Terminate
  4021.           it?."  If the user answers "no," macro execution will continue as
  4022.           if nothing had happened.  If "yes," the macro will be STOPped and
  4023.           the macro at the label will be started.  If the label does not
  4024.           exist, a STOP will be executed.  P1 is the default.
  4025.  
  4026.      P0
  4027.           The user will not be prompted.  The macro will be STOPped and the
  4028.           macro at the label will be started.  If the label does not exist,
  4029.           a STOP will be executed.
  4030.  
  4031. Examples:
  4032.  
  4033.      {setesc finish}
  4034.           GOTO label, with prompt.
  4035.  
  4036.      {sete-p0 done}
  4037.           GOTO label, without prompt.
  4038.  
  4039.      {setesc}
  4040.           Reset to no label (STOP on Esc).
  4041.  
  4042.  
  4043. This function is used to "capture" the Esc key during macro execution.  It
  4044. can help to prevent accidental macro terminations.
  4045.  
  4046. NOTE:  In the various command windows, Esc is normally used to exit the
  4047. window.  Use Ctrl-Break to bring up the prompt.
  4048.  
  4049.  
  4050. ===  SETGet  ===
  4051.  
  4052. Default key:   none
  4053. Description:   Set parameters for GETString functions.
  4054.  
  4055. General form:
  4056.  
  4057.      {SETGet seconds,label,y/n/l,string}
  4058.  
  4059.           seconds
  4060.                GETString timeout.  If a character is not entered in the
  4061.                specified amount of time, the macro in the second argument
  4062.                will be started.  May be 0 to 999.  Default is 0 (disabled).
  4063.  
  4064.           label
  4065.                Timeout macro.  Macro to GOTO if the time in the first
  4066.                argument expires.  If no macro is specified or if the macro
  4067.                label is invalid, control will pass to the function
  4068.                following the GETString.  Default is no macro.
  4069.  
  4070.  
  4071.  
  4072.                                     -76-
  4073.  
  4074.                Note that if the timer expires no variable assignment will
  4075.                be made.  Any previous assignment will be unaltered.
  4076.  
  4077.                IMPORTANT!  If the GETString is in a CALLed subroutine, be
  4078.                sure to execute a RETUrn or POPS at the label.
  4079.  
  4080.           y/n/l
  4081.                Echo Status.  If this is "yes", characters entered at the
  4082.                local or remote terminals will be echoed back to the remote
  4083.                and displayed locally.  This is the default.
  4084.  
  4085.                If "no", characters will not be echoed to either location.
  4086.  
  4087.                If "local", characters will be displayed locally, but not
  4088.                echoed to the remote.  This should be used when the remote
  4089.                is a host system.
  4090.  
  4091.                IMPORTANT!  This setting is independent of Local Echo.  Turn
  4092.                on Local Echo if necessary for local display of data
  4093.                transmitted with SEND, ASCIiup, etc.
  4094.  
  4095.           string
  4096.                Terminator response.  This string will be sent and/or
  4097.                displayed locally (in accord with the Echo Status) when a
  4098.                carriage return is received (input terminated).  This is
  4099.                typically a carriage return/linefeed.  May be up to 32
  4100.                characters.  Default is no string.
  4101.  
  4102. Example:
  4103.  
  4104.      {setg 120,noget,y,^m^j}
  4105.           Set GETString parameters.
  4106.  
  4107.  
  4108. The SETGet function will set parameters for all subsequent GETString
  4109. functions.  It may be executed at any time to modify the parameters.
  4110.  
  4111. When macro execution terminates, the parameters will be reset to the
  4112. default values.
  4113.  
  4114. Default arguments are:
  4115.  
  4116.      GETString timeout        0 (disabled)
  4117.      Timeout macro            none 
  4118.      Echo status              y (echo on)
  4119.      Terminator response      none
  4120.  
  4121. IMPORTANT!  Null arguments in the SETGet function will be set to these
  4122. defaults.
  4123.  
  4124. See also GETString.
  4125.  
  4126.  
  4127.  
  4128.                                     -77-
  4129.  
  4130. ===  SETLook  ===
  4131.  
  4132. Default key:   none
  4133. Description:   Set parameters for LOOKfor functions.
  4134.  
  4135. General form:
  4136.  
  4137.      {SETLook seconds,label,seconds,string}
  4138.  
  4139.           seconds
  4140.                LOOKfor timeout.  Maximum time in seconds to look for
  4141.                strings.  If no string is found in the allotted time, the
  4142.                macro in the second argument will be started.  May be 0 to
  4143.                999.  Note that this timer is restarted whenever a string is
  4144.                sent by SSLOok.  Default is 0 (disabled).
  4145.  
  4146.           label
  4147.                Timeout macro.  Macro to GOTO if the time in the first
  4148.                argument expires.  If no macro is specified or if the macro
  4149.                label is invalid, control will pass to the function
  4150.                following the LOOKfor.
  4151.  
  4152.                IMPORTANT!  If the LOOKfor is in a CALLed subroutine, be
  4153.                sure to execute a RETUrn or POPS at the label.
  4154.  
  4155.           seconds
  4156.                Prompt timeout.  During a LOOKfor function unwanted prompts
  4157.                may appear like "Press any key" or "More [Y/n]", etc.  This
  4158.                argument is the time in seconds to wait at a prompt (no
  4159.                input from the modem) before sending the string in the
  4160.                fourth argument.  Usually you would send "|" or "n|".
  4161.  
  4162.                When the response string is sent the timer is restarted,
  4163.                allowing any number of prompts to be satisfied (until the
  4164.                LOOKfor itself is satisfied or times out).
  4165.  
  4166.                The timer will also be restarted if any keys are typed while
  4167.                waiting.  This allows a manual response to a prompt which
  4168.                the macro does not handle.
  4169.  
  4170.                IMPORTANT!  The prompt timeout should be long enough (or
  4171.                disabled entirely) to prevent the response from being sent
  4172.                when there is a long delay without a prompt.  This might
  4173.                occur right after connection while the BBS software is
  4174.                loading or when a "door" program is loading.
  4175.  
  4176.                Failure to heed this warning will result in "n" responses to
  4177.                "First name?" and other undesirable effects.
  4178.  
  4179.                May be 0 to 999.  Default is 0 (disabled).
  4180.  
  4181.  
  4182.  
  4183.                                     -78-
  4184.  
  4185.           string
  4186.                Prompt response.  String to send when the time in the third
  4187.                argument runs out.  May be up to 32 characters.  Default is
  4188.                no string.
  4189.  
  4190. Example:
  4191.  
  4192.      {setl 60,abc,4,n|}
  4193.           Set LOOKfor parameters
  4194.  
  4195.  
  4196. The SETLook function will set parameters for subsequent LOOKfor functions
  4197. and may be executed at any time to modify the parameters.
  4198.  
  4199. When macro execution terminates, the parameters will be reset to the
  4200. default values.
  4201.  
  4202. Default arguments are:
  4203.  
  4204.      LOOKfor timeout     0 (disabled)
  4205.      Timeout macro       none 
  4206.      Prompt timeout      0 (disabled)
  4207.      Prompt response     none
  4208.  
  4209. IMPORTANT!  Null arguments in the SETLook function will revert to these
  4210. defaults.
  4211.  
  4212. See also LOOKfor, SSLOok, CALOok, GOLOok.
  4213.  
  4214.  
  4215. ===  SETR  ===
  4216.  
  4217. Default key:   none
  4218. Description:   Define a label to GOTO when a Macro Error occurs.
  4219.  
  4220. Examples:
  4221.  
  4222.      {setr error}
  4223.           GOTO "error" when any Macro Error occurs.
  4224.  
  4225.      {setr}
  4226.           Reset to no label.
  4227.  
  4228. SETR allows a macro to get control when a Macro Error occurs.  All macro
  4229. parameters (see STOP) will be reset after the error (including the SETR
  4230. label).
  4231.  
  4232. TIPS on using SETR:
  4233.  
  4234.  *   The built-in variable "_met" will contain an error message describing
  4235.      the most recent error.
  4236.  
  4237.  *   Variable Space will not be changed.
  4238.  
  4239.  
  4240.  
  4241.                                     -79-
  4242.  
  4243.  
  4244.  *   If the specified label does not exist, or if no label is currently
  4245.      specified, {COMMO} will STOP and indicate the location of the error.
  4246.  
  4247.  
  4248. ===  SETUp  ===
  4249.  
  4250. Default key:   Alt-G
  4251. Description:   Edit Setup File.
  4252.  
  4253. Example:
  4254.  
  4255.      {setup}
  4256.           No arguments.
  4257.  
  4258.  
  4259. ===  SETVariable  ===
  4260.  
  4261. Default key:   none
  4262. Description:   Assign a string to a variable name.
  4263.  
  4264. General form:
  4265.  
  4266.      {SETVariable name,string}
  4267.  
  4268.           name
  4269.                The name of the variable to which the string will be
  4270.                assigned.
  4271.  
  4272.           string
  4273.                The string may be the name of another {COMMO} variable or an
  4274.                environment variable.  In these cases further expansion is
  4275.                controlled by switches (see below).
  4276.  
  4277. Switches:
  4278.  
  4279.      E1 or E
  4280.           This switch indicates that the second argument is a DOS
  4281.           environment variable.  If it is not found in the environment, the
  4282.           {COMMO} variable will be set to NULL.
  4283.  
  4284.           Note that environment variable names are CASE SENSITIVE (they are
  4285.           usually upper case).
  4286.  
  4287.      E0
  4288.           Normal variable (default).
  4289.  
  4290.  
  4291.  
  4292.                                     -80-
  4293.  
  4294.      S1 or S
  4295.           This switch will cause "double expansion" of the second argument
  4296.           (indirect variable).  First {COMMO} will substitute any variables
  4297.           indicated by "%" signs.  The resulting string (which must NOT
  4298.           begin with a "%") will then be treated as a variable name and
  4299.           expanded again.
  4300.  
  4301.           This facility may be used to create a "subscript."
  4302.  
  4303.      S0
  4304.           Single expansion (default).
  4305.  
  4306. Examples:
  4307.  
  4308.      {setv net,nodeid}
  4309.           Assign the string "nodeid" to the variable name "net".
  4310.  
  4311.      {setv nodeid,ggcs_bbs}
  4312.           Assign the string "ggcs_bbs" to the variable name "nodeid".
  4313.  
  4314.      {setv-s bbs,nodeid}
  4315.           Assuming the above examples have been executed, this will set the
  4316.           variable "bbs" to "ggcs_bbs".
  4317.  
  4318.      {setv-s board,%net}
  4319.           Assuming the above examples have been executed, this will set the
  4320.           variable "board" to "ggcs_bbs".
  4321.  
  4322.      {setv-s xxx,yyy%index}
  4323.           Suppose the variable "index" has the value "3".  It will be
  4324.           expanded first, then "yyy3" will be expanded and its value
  4325.           assigned to "xxx".
  4326.  
  4327.      {setv-e abc,TABLE}
  4328.           Assuming a "SET TABLE=" DOS command has been executed prior to
  4329.           running {COMMO}, the variable "abc" will be set to the
  4330.           environment string.
  4331.  
  4332.      {setv abc} or {setv abc,}
  4333.           Set the variable "abc" to null (it will be deleted from variable
  4334.           space).
  4335.  
  4336.  
  4337. ===  SFICtrl  ===
  4338.  
  4339. Default key:   none
  4340. Description:   Speech Friendly Interface control.
  4341.  
  4342.  
  4343.  
  4344.                                     -81-
  4345.  
  4346. Examples:
  4347.  
  4348.      {sfic}
  4349.           Toggle Speech Friendly Interface on/off.
  4350.  
  4351.      {sfic y}
  4352.           Turn on Speech Friendly Interface.
  4353.  
  4354.      {sfic n}
  4355.           Turn off Speech Friendly Interface.
  4356.  
  4357. The built-in variable "_sfi" is 1 when the Speech Friendly Interface is ON,
  4358. 0 when it is OFF.
  4359.  
  4360.  
  4361. ===  SHELl  ===
  4362.  
  4363. Default key:   Alt-S
  4364. Description:   Shell to DOS.
  4365.  
  4366. Switches:
  4367.  
  4368.      S1 or S
  4369.           Swap to disk before shelling to DOS (see details under EXECute,
  4370.           "Using the Swap to Disk Switch").
  4371.  
  4372.      S0
  4373.           Do not swap to disk (default).
  4374.  
  4375. Examples:
  4376.  
  4377.      {shell}
  4378.           No arguments.
  4379.  
  4380.      {shell-s}
  4381.           Swap to disk before shelling to DOS.
  4382.  
  4383.  
  4384. ===  SIGNal  ===
  4385.  
  4386. Default key:   none
  4387. Description:   Set state of hardware signals.
  4388.  
  4389. Switches:
  4390.  
  4391.      D1 or D
  4392.           Set DTR high.
  4393.  
  4394.      D0
  4395.           Set DTR low.
  4396.  
  4397.  
  4398.  
  4399.                                     -82-
  4400.  
  4401.      R1 or R
  4402.           Set RTS high.
  4403.  
  4404.      R0
  4405.           Set RTS low.
  4406.  
  4407. Example:
  4408.  
  4409.      {signal-d0r1}
  4410.           Turn off DTR, turn on RTS.
  4411.  
  4412. The "D" and "R" switches are used to control the RS-232C signals DTR (Data
  4413. Terminal Ready) and RTS (Request To Send).  The default for each switch is
  4414. to leave the signal unchanged.  Use these with care due to interaction with
  4415. Hardware Flow Control, etc.
  4416.  
  4417.  
  4418. ===  SOUNd  ===
  4419.  
  4420. Default key:   none
  4421. Description:   Set Master Sound toggle.
  4422.  
  4423. Examples:
  4424.  
  4425.      {sound}
  4426.           Toggle Master Sound on/off.
  4427.  
  4428.      {sound y}
  4429.           Turn on Master Sound.
  4430.  
  4431.      {sound n}
  4432.           Turn off Master Sound.
  4433.  
  4434.  
  4435. ===  SPDCtrl  ===
  4436.  
  4437. Default key:   none
  4438. Description:   Serial port display control.
  4439.  
  4440. Examples:
  4441.  
  4442.      {spdc y}
  4443.           Serial port display is ON.
  4444.  
  4445.      {spdc n}
  4446.           Serial port display is OFF.
  4447.  
  4448. This function will suppress display of any data received from the serial
  4449. port.  It can be used when a "clean" display is desired during automated
  4450. procedures.
  4451.  
  4452.  
  4453.  
  4454.                                     -83-
  4455.  
  4456. TIPS on using SPDCtrl:
  4457.  
  4458.  *   Serial port display can be suppressed only while a macro is running
  4459.      (it will be restored to ON at macro termination).
  4460.  
  4461.  *   ANSI control sequences are not processed while the display is OFF
  4462.      (Terminal Emulation effectively reverts to TTY).
  4463.  
  4464.  *   LOOKfor will function normally, but remember that ANSI sequences are
  4465.      not stripped.  Make a manual run using TTY emulation to see what the
  4466.      LOOKfor will see.
  4467.  
  4468.  *   SCREEN Capture Mode will not capture any of the incoming data.  If
  4469.      capture is required, RAW mode or FILTER mode must be used (note that
  4470.      ANSI sequences will not be removed).
  4471.  
  4472.  
  4473. ===  SPOCtrl  ===
  4474.  
  4475. Default key:   none
  4476. Description:   Serial port output control.
  4477.  
  4478. Examples:
  4479.  
  4480.      {spoc y}
  4481.           Serial port output is ON.
  4482.  
  4483.      {spoc n}
  4484.           Serial port output is OFF.
  4485.  
  4486. This function will inhibit any data from being sent to the serial port. 
  4487. All other program operations will be normal.  It is used for "local mode"
  4488. in host macros (no data is sent to the modem).
  4489.  
  4490. TIPS on using SPOCtrl:
  4491.  
  4492.  *   Serial port output can be inhibited only while a macro is running (it
  4493.      will be restored to ON at macro termination).
  4494.  
  4495.  *   Dialing and internal protocols will not operate properly if serial
  4496.      port output is turned OFF.
  4497.  
  4498.  
  4499. ===  SSLOok  ===
  4500.  
  4501. Default key:   none
  4502. Description:   Send a string when a string appears.
  4503.  
  4504. General form:
  4505.  
  4506.      {SSLOok name,target}
  4507.  
  4508.  
  4509.  
  4510.                                     -84-
  4511.  
  4512.           name
  4513.                The name of a string variable (MUST be a variable).
  4514.  
  4515.           target
  4516.                The ASCII string to look for.  The string begins following
  4517.                the "," and is terminated by the "}".
  4518.  
  4519. Switches:
  4520.  
  4521.      R or R1
  4522.           Send a carriage return after sending the variable string to the
  4523.           serial port.
  4524.  
  4525.      R0
  4526.           Do not send a carriage return (default).
  4527.  
  4528. Example:
  4529.  
  4530.      {setv ss_r,|} {setv ss_nr,n|}
  4531.      ...
  4532.      {sslo-r _pas,password:}
  4533.      {sslo ss_r,Press enter to continue}
  4534.      {sslo ss_nr,Do you want to log off?}
  4535.      {look command?} ...
  4536.  
  4537. SSLOok is used in conjunction with the LOOKfor function.  It sets up an
  4538. additional string to look for.  When the target string appears, the string
  4539. in the variable is sent to the serial port.  The LOOKfor timeout (specified
  4540. in a SETLook) is restarted and the LOOKfor continues to look for all
  4541. specified strings.
  4542.  
  4543. See LOOKfor for details, examples and tips on using SSLOok.
  4544.  
  4545. See also CALOok, GOLOok, SETLook.
  4546.  
  4547.  
  4548. ===  STATusline  ===
  4549.  
  4550. Default key:   none
  4551. Description:   Set Status Line toggle.
  4552.  
  4553. IMPORTANT!  The Status Line is {COMMO}'s instrument panel.  You should not
  4554. turn it off until you are familiar with operating the program.
  4555.  
  4556. Examples:
  4557.  
  4558.      {statusline}
  4559.           Toggle Status Line on/off.
  4560.  
  4561.  
  4562.  
  4563.                                     -85-
  4564.  
  4565.      {status y}
  4566.           Turn on Status Line.
  4567.  
  4568.      {status n}
  4569.           Turn off Status Line.
  4570.  
  4571. When the Status Line is off (not visible), The Terminal Screen has one
  4572. additional display row (e.g., 25 rows instead of 24).
  4573.  
  4574. The STATusline function is ignored while in Chat Mode.
  4575.  
  4576.  
  4577. ===  STOP  ===
  4578.  
  4579. Default key:   none
  4580. Description:   Halt macro execution.
  4581.  
  4582. Examples:
  4583.  
  4584.      {stop}
  4585.           No arguments.
  4586.  
  4587.      {}
  4588.           Short form.
  4589.  
  4590. STOP always returns {COMMO} to manual operation in the Terminal Screen. 
  4591. All macro parameters are reset (except string variables).  This includes
  4592. the macro push/pop stack, SETLook, SETGet, SETEsc, etc.  Files opened with
  4593. ROPEn and WOPEn will be closed.
  4594.  
  4595.  
  4596. ===  STRAn  ===
  4597.  
  4598. Default key:   none
  4599. Description:   Maintain Send Translate Table.
  4600.  
  4601. Switches:
  4602.  
  4603.      I1 or I
  4604.           Initialize Send Translate Table to default values (consecutive 0
  4605.           to 255).
  4606.  
  4607.      I0
  4608.           Do not initialize (default).
  4609.  
  4610. Examples:
  4611.  
  4612.      {stran y}
  4613.           Turn send translation ON.
  4614.  
  4615.  
  4616.  
  4617.                                     -86-
  4618.  
  4619.      {stran-i n}
  4620.           Initialize the table and turn it OFF.
  4621.  
  4622.      {stran-i y,92,47}
  4623.           Initialize the table, turn send translation ON, change "\" to
  4624.           "/".
  4625.  
  4626.      {stran}
  4627.           Toggle send translation ON/OFF.
  4628.  
  4629.      {stran #13,65,78,#13,78,65,#13,97,110,#13,110,97}
  4630.           ROT13 translation.  This swaps the first 13 letters of the
  4631.           alphabet for the second 13.
  4632.  
  4633. Rules for STRAn arguments are the same as for the {str=} item in the Setup
  4634. File.  In addition, "n" may be used as the first argument to turn send
  4635. translation OFF at any time.
  4636.  
  4637. See "Edit Setup File" in Part I (COMMO.DOC) for details and more examples.
  4638.  
  4639. TIPS on using STRAn:
  4640.  
  4641.  *   Some control characters are unaffected by translation when certain
  4642.      features are enabled.  Examples:  XON (17) and XOFF (19) are not
  4643.      translated when Software Flow Control is on.  When ENQ/ACK emulation
  4644.      is on, an ACK sent in response to an ENQ will not be translated.
  4645.  
  4646.  *   In GETString, data echoed to the modem (and displayed locally) will be
  4647.      translated with the Send Translate Table (it may be necessary to turn
  4648.      send translation off during certain GETString functions).
  4649.  
  4650. See also RTRAn.
  4651.  
  4652.  
  4653. ===  SUBString  ===
  4654.  
  4655. Default key:   none
  4656. Description:   Move a substring to a variable.
  4657.  
  4658. General form:
  4659.  
  4660.      {SUBString name,start,count,string}
  4661.  
  4662.           name
  4663.                The name of the variable to which the substring will be
  4664.                assigned.
  4665.  
  4666.           start
  4667.                The starting character number (first character is "1").  If
  4668.                it is negative, {COMMO} will count in from the end of the
  4669.                string.
  4670.  
  4671.                If it is too large and positive, the substring will be null.
  4672.  
  4673.  
  4674.  
  4675.                                     -87-
  4676.  
  4677.  
  4678.                If it is too large and negative, the substring will start at
  4679.                the beginning of the string.
  4680.  
  4681.           count
  4682.                The number of characters to use.  If the number is too
  4683.                large, {COMMO} will use as many as possible.  If the count
  4684.                is 0, the substring will be null.
  4685.  
  4686.           string
  4687.                The string to use.
  4688.  
  4689. Examples:
  4690.  
  4691.      {subs var_sub,2,4,abcdefgh}
  4692.           Set "var-sub" to "bcde".
  4693.  
  4694.      {subs newvar,-5,20,abcdefgh}
  4695.           Set "newvar" to "defgh".
  4696.  
  4697.  
  4698. ===  SXMOdem  ===
  4699.  
  4700. Default key:   none
  4701. Description:   Send a file using the Xmodem protocol.
  4702.  
  4703. Switches:
  4704.  
  4705.      See SYMOdem (switches are the same).
  4706.  
  4707. Example:
  4708.  
  4709.      {sxmo-ka c:\ul\file.zip}
  4710.           Send "file.zip" using 1024 byte block size (Xmodem-1k), sound the
  4711.           alarm.
  4712.  
  4713. Only one file may be sent with each SXMOdem function.
  4714.  
  4715. See SYMOdem for tips that apply to both SXMOdem and SYMOdem.
  4716.  
  4717.  
  4718. ===  SYMOdem  ===
  4719.  
  4720. Default key:   none
  4721. Description:   Send a file using the Ymodem Batch protocol.
  4722.  
  4723. Switches:
  4724.  
  4725.      NOTE: U, D, A and W switches are the same as for SZMOdem.
  4726.  
  4727.  
  4728.  
  4729.                                     -88-
  4730.  
  4731.      K1 or K
  4732.           Use 1024 byte block size.
  4733.  
  4734.      K0
  4735.           Use 128 byte block size (default).
  4736.  
  4737. Examples:
  4738.  
  4739.      {symo-ka %uldir\*.zip}
  4740.           Send all .ZIP files in the upload directory using 1024 byte block
  4741.           size, sound the alarm.
  4742.  
  4743.      {symo-k c:\subdir\*.*,@c:\ul\file.lst,info.txt,a:*.qw?}
  4744.           Send all files listed using 1024 byte block size.
  4745.  
  4746. See "File Specifications" under SZMOdem for more details on specifying
  4747. files for uploading.
  4748.  
  4749. TIPS on using SYMOdem and SXMOdem:
  4750.  
  4751.  *   CRC vs. Csum mode and use of "G" method is determined by the receiver. 
  4752.      Block size is determined by the sender.  {COMMO} will always use 1024
  4753.      byte blocks with "G" method.
  4754.  
  4755.  *   Some conditions that will cancel a transfer:
  4756.        1)  10 consecutive errors.
  4757.        2)  Any error when "G" method is used.
  4758.        3)  The receiver has transmitted CAN (^X) characters.
  4759.        4)  Loss of carrier.
  4760.  
  4761.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  4762.      and will also be stored in the variable "_err".  0 means all files
  4763.      were transferred successfully.  1 means one or more files in the batch
  4764.      were not completed.
  4765.  
  4766.  *   If the Usage Log is enabled, an entry will be made after each file is
  4767.      transferred (or if a transfer is cancelled).
  4768.  
  4769.  
  4770. ===  SZMOdem  ===
  4771.  
  4772. Default key:   none
  4773. Description:   Send a file using the Zmodem Batch protocol.
  4774.  
  4775. Switches:
  4776.  
  4777.      R1 or R
  4778.           Tell the receiving program to resume the transfer at the end of
  4779.           the existing file.
  4780.  
  4781.      U1 or U
  4782.           Delete files after successful transmission.  Use with CAUTION!
  4783.  
  4784.  
  4785.  
  4786.                                     -89-
  4787.  
  4788.      D1 or D
  4789.           Cancel transfer if carrier detect is lost (default).
  4790.  
  4791.           NOTE:  If carrier detect is off when the transfer is started,
  4792.           this switch will behave as if "D0" had been set.
  4793.  
  4794.      D0
  4795.           Ignore state of carrier detect.
  4796.  
  4797.      A1 or A
  4798.           Sound the alarm at end of transfer.
  4799.  
  4800.      A0
  4801.           Do not sound the alarm (default).
  4802.  
  4803.      W
  4804.           Wait for a keypress at end of transfer.
  4805.  
  4806.      Wn
  4807.           Wait for "n" seconds, "n" may range from 0 to 999.  Press a key
  4808.           to cancel the wait.
  4809.  
  4810.           Note:  Default (no "W" switch) is no wait.
  4811.  
  4812. Examples:
  4813.  
  4814.      {szmo-a %uldir\*.*}
  4815.           Send all files in the upload directory, sound the alarm when
  4816.           finished.
  4817.  
  4818.      {szmo-u ginger.rep}
  4819.           Send "ginger.rep" and delete it after a successful transfer.
  4820.  
  4821.  
  4822. ----------  File Specifications
  4823.  
  4824. Any combination of file specifications may be listed in the SZMOdem or
  4825. SYMOdem functions.  These must be separated with commas and may include
  4826. wildcard specifiers (*,?), the indirect file specifier (@) and any single
  4827. files.
  4828.  
  4829. If a filespec is preceded with the "@" sign, it will be assumed to be an
  4830. "indirect file."  This means that it is a text file containing a list of
  4831. filespecs.  Filespecs should be listed one per line and each line should
  4832. end with a cr/lf (i.e., a normal text file).  Each filespec may contain
  4833. wildcards.  For example:
  4834.  
  4835.      c:\subdir\*.*
  4836.      info.txt
  4837.      a:*.qw?
  4838.  
  4839.  
  4840.  
  4841.                                     -90-
  4842.  
  4843. TIPS on using SZMOdem:
  4844.  
  4845.  *   Some conditions that will cancel a transfer:
  4846.        1)  20 consecutive errors.
  4847.        2)  The receiver has cancelled.
  4848.        3)  Loss of carrier.
  4849.  
  4850.  *   The Exit Code (test with IFER) will be set at the end of the transfer
  4851.      and will also be stored in the variable "_err".  0 means all files
  4852.      were transferred successfully.  1 means one or more files in the batch
  4853.      were not completed.
  4854.  
  4855.  *   If the Usage Log is enabled, an entry will be made after each file is
  4856.      transferred (or if a transfer is cancelled).
  4857.  
  4858.  
  4859. ===  TOGGles  ===
  4860.  
  4861. Default key:   Alt-T
  4862. Description:   Set various toggle parameters.
  4863.  
  4864. Example:
  4865.  
  4866.      {toggles}
  4867.           Open Set Toggles window.
  4868.  
  4869.  
  4870. ===  UNLOad  ===
  4871.  
  4872. Default key:   none
  4873. Description:   Unload the current auxiliary Macro File.
  4874.  
  4875. Examples:
  4876.  
  4877.      {unload}
  4878.           No arguments.
  4879.  
  4880. The auxiliary Macro File will be released from memory.  If no auxiliary is
  4881. loaded, no action will be taken.
  4882.  
  4883. If this function is executed from the auxiliary file, a STOP will occur
  4884. after the auxiliary is released.
  4885.  
  4886. See also CALL, GOTO.
  4887.  
  4888.  
  4889. ===  UNMArk  ===
  4890.  
  4891. Default key:   none
  4892. Description:   Unmark Dialing Directory entries.
  4893.  
  4894.  
  4895.  
  4896.                                     -91-
  4897.  
  4898. Switches:
  4899.  
  4900.      L1 or L
  4901.           Unmark last-dialed entry only.
  4902.  
  4903.      L0
  4904.           Unmark all or listed entries (default).
  4905.  
  4906. Examples:
  4907.  
  4908.      {unmark joes-bbs,file-city}
  4909.           Unmark listed entries.
  4910.  
  4911.      {unmark}
  4912.           Unmark all entries.
  4913.  
  4914.      {unmark-L}
  4915.           Unmark last-dialed entry.
  4916.  
  4917. NOTE:  When the "L" switch is present, any Dialing Strings listed will be
  4918. ignored.
  4919.  
  4920. Dialing Strings may be separated by spaces or commas.
  4921.  
  4922. {COMMO} will search the Dialing Directory for each string and unmark the
  4923. first entry where a match is found.  Case is ignored.
  4924.  
  4925. The strings may consist of any part of a Dialing Directory entry line
  4926. (including strings contained within curly braces), but must NOT contain any
  4927. spaces, commas or curly braces.
  4928.  
  4929. See also DIAL, MARK.
  4930.  
  4931.  
  4932. ===  VIDEo  ===
  4933.  
  4934. Default key:   none
  4935. Description:   Change to an alternate hardware video mode.
  4936.  
  4937. Switches:
  4938.  
  4939.      M1 or M
  4940.           Change to the alternate display mode.
  4941.  
  4942.      M0
  4943.           Change back to the normal display mode.
  4944.  
  4945.  
  4946.  
  4947.                                     -92-
  4948.  
  4949. Examples:
  4950.  
  4951.      {video-m1}
  4952.           Change to the alternate mode.
  4953.  
  4954.      {video-m0}
  4955.           Change back to the normal mode.
  4956.  
  4957. The "alternate" mode is defined by Setup File item {avm=}.  The "normal"
  4958. mode is the mode in effect when you start {COMMO}.
  4959.  
  4960.  
  4961. ===  VTCUr  ===
  4962.  
  4963. Default key:   none
  4964. Description:   Define a VT102 cursor (arrow) key.
  4965.  
  4966. Example:
  4967.  
  4968.      {vtcur ^[[A|^[OA}
  4969.           Define up-arrow key strings.
  4970.  
  4971. The first string is sent when cursor mode is active; the second string is
  4972. sent when application mode is active (these modes are controlled by the
  4973. host).
  4974.  
  4975. The two strings must be separated by a "|".  Use "^m" for carriage return
  4976. if necessary.
  4977.  
  4978. See also VTPAd.
  4979.  
  4980.  
  4981. ===  VTPAd  ===
  4982.  
  4983. Default key:   none
  4984. Description:   Define a VT102 keypad key.
  4985.  
  4986. Example:
  4987.  
  4988.      {vtpad 5|^[Ou}
  4989.           Define keypad "5" key strings.
  4990.  
  4991. The first string is sent when numeric mode is active; the second string is
  4992. sent when application mode is active (these modes are controlled by the
  4993. host).
  4994.  
  4995. The two strings must be separated by a "|".  Use "^m" for carriage return
  4996. if necessary.
  4997.  
  4998. See also VTCUr.
  4999.  
  5000.  
  5001.  
  5002.                                     -93-
  5003.  
  5004. ===  WCLOse  ===
  5005.  
  5006. Default key:   none
  5007. Description:   Close the write file.
  5008.  
  5009. Example:
  5010.  
  5011.      {wclose}
  5012.           No arguments.
  5013.  
  5014. NOTE:  The write file will be closed automatically when the macro
  5015. terminates (STOP, EXIT, etc.).
  5016.  
  5017. See also WOPEn, WRITE.
  5018.  
  5019.  
  5020. ===  WINDow  ===
  5021.  
  5022. Default key:   none
  5023. Description:   Preserve window display.
  5024.  
  5025. Switches:
  5026.  
  5027.      K1 or K
  5028.           Do not allow the Terminal Screen to be restored when exiting from
  5029.           a window.
  5030.  
  5031.      K0
  5032.           Allow the Terminal Screen to be restored when exiting from a
  5033.           window (default).
  5034.  
  5035. Examples:
  5036.  
  5037.      {window-k}
  5038.           Don't restore the Terminal Screen.
  5039.  
  5040.      {wind-k0}
  5041.           Restore the Terminal Screen.
  5042.  
  5043. This function will prevent the Terminal Screen from being restored after a
  5044. window function exits.  It is useful for making smooth, flicker-free
  5045. transitions between windows or for placing one pop-up window on top of
  5046. another.
  5047.  
  5048. The condition will remain active until either the "k0" switch is used or
  5049. the macro terminates.
  5050.  
  5051.  
  5052. ===  WOPEn  ===
  5053.  
  5054. Default key:   none
  5055. Description:   Open a file for writing.
  5056.  
  5057.  
  5058.  
  5059.                                     -94-
  5060.  
  5061. Switches:
  5062.  
  5063.      A1 or A
  5064.           Open the file in "append" mode.  New lines written to the file
  5065.           will be added at the end.  If the file doesn't exist, it will be
  5066.           created.
  5067.  
  5068.      A0
  5069.           Open the file in "create" mode.  If the file exists, it will be
  5070.           erased (default).
  5071.  
  5072. Examples:
  5073.  
  5074.      {wopen c:\bbs\file.txt}
  5075.           Open the file in create mode.
  5076.  
  5077.      {wopen-a c:\data\word.fil}
  5078.           Open the file in append mode.
  5079.  
  5080. TIP on using WOPEn:
  5081.  
  5082.  *   Only one file may be opened for writing (and one for reading).
  5083.  
  5084. See also WRITe, WCLOse.
  5085.  
  5086.  
  5087. ===  WRITe  ===
  5088.  
  5089. Default key:   none
  5090. Description:   Write a string to the write file.
  5091.  
  5092. Examples:
  5093.  
  5094.      {write %nextline}
  5095.           Write the contents of the variable "nextline" to the write file.
  5096.  
  5097.      {write}
  5098.           Write a carriage return/linefeed only (blank line) to the file.
  5099.  
  5100.      {write %num%> }
  5101.           Write the contents of "num" followed by a ">" and a space.
  5102.  
  5103. TIPS on using WRITe:
  5104.  
  5105.  *   A file must be open for writing or a Macro Error will result.
  5106.  
  5107.  *   The string will be written as one line, terminated by a carriage
  5108.      return/linefeed.
  5109.  
  5110.  *   Control character conversion is NOT performed on the write string.
  5111.  
  5112.  *   A Macro Error will result if the disk is full.
  5113.  
  5114.  
  5115.  
  5116.                                     -95-
  5117.  
  5118. See also WOPEn, WCLOse
  5119.  
  5120.  
  5121.  
  5122.                                     -96-
  5123.  
  5124. For APPENDICES see Part I, COMMO.DOC.
  5125.  
  5126.